Spaces:
Runtime error
Runtime error
Commit
Β·
2ca57fd
1
Parent(s):
3eda0b1
add files
Browse files
app.py
CHANGED
@@ -11,10 +11,10 @@ from pix2tex import cli as pix2tex
|
|
11 |
model = pix2tex.LatexOCR()
|
12 |
|
13 |
|
14 |
-
def inference(
|
15 |
-
img = Image.open(input_image_path)
|
16 |
-
output = model(
|
17 |
-
print("Model output:",output)
|
18 |
return output
|
19 |
|
20 |
|
|
|
11 |
model = pix2tex.LatexOCR()
|
12 |
|
13 |
|
14 |
+
def inference(input_image):
|
15 |
+
# img = Image.open(input_image_path)
|
16 |
+
output = model(input_image)
|
17 |
+
# print("Model output:",output)
|
18 |
return output
|
19 |
|
20 |
|