Yiran commited on
Commit
4949214
·
1 Parent(s): 7558f8a

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="image", outputs="text")
13
  iface.launch()
 
9
 
10
 
11
  model = LatexOCR()
12
+ iface = gr.Interface(fn=predict, inputs=gr.Image(type='pil'), outputs="text")
13
  iface.launch()