Spaces:
Runtime error
Runtime error
Commit
Β·
4c31e3f
1
Parent(s):
2ca57fd
add files
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ os.system("pip install pix2tex")
|
|
9 |
from pix2tex import cli as pix2tex
|
10 |
|
11 |
model = pix2tex.LatexOCR()
|
|
|
12 |
|
13 |
|
14 |
def inference(input_image):
|
@@ -31,7 +32,7 @@ demo = gr.Interface(
|
|
31 |
description=description,
|
32 |
article=article,
|
33 |
inputs=gr.inputs.Image(
|
34 |
-
type="
|
35 |
),
|
36 |
outputs=gr.outputs.Textbox(type="text", label="Output: Converted LaTeX code."),
|
37 |
examples=["./eqn1.png", "./eqn2.png", "./eqn3.png"],
|
|
|
9 |
from pix2tex import cli as pix2tex
|
10 |
|
11 |
model = pix2tex.LatexOCR()
|
12 |
+
print(model)
|
13 |
|
14 |
|
15 |
def inference(input_image):
|
|
|
32 |
description=description,
|
33 |
article=article,
|
34 |
inputs=gr.inputs.Image(
|
35 |
+
type="pil", label="Input: Image of your equation you want to covert."
|
36 |
),
|
37 |
outputs=gr.outputs.Textbox(type="text", label="Output: Converted LaTeX code."),
|
38 |
examples=["./eqn1.png", "./eqn2.png", "./eqn3.png"],
|