Skip to content

Trying to run free MFD model #86

Description

@coderuhaan2004

I am new to running such models. In your website, there's a code snippet given to run the model.
`python
from pix2text import Pix2Text, merge_line_texts

img_fp = './docs/examples/formula.jpg'
p2t = Pix2Text(analyzer_config=dict(model_name='mfd'))
outs = p2t(img_fp, resized_shape=608)

print(outs)
only_text = merge_line_texts(outs, auto_line_break=True)`

i tried to run this code as well as installed pix2text library but got this error.
Screenshot_23-7-2024_234356_colab research google com
Please guide me in running the model.
By the way i am using Google colab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions