Yiran
commited on
Commit
·
4949214
1
Parent(s):
7558f8a
update app.py
Browse files
app.py
CHANGED
|
@@ -9,5 +9,5 @@ def predict(img: Image.Image) -> str:
|
|
| 9 |
|
| 10 |
|
| 11 |
model = LatexOCR()
|
| 12 |
-
iface = gr.Interface(fn=predict, inputs=
|
| 13 |
iface.launch()
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
model = LatexOCR()
|
| 12 |
+
iface = gr.Interface(fn=predict, inputs=gr.Image(type='pil'), outputs="text")
|
| 13 |
iface.launch()
|