MQAnh commited on
Commit
f705816
·
verified ·
1 Parent(s): a7a5c42

update ver 4

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,10 +20,11 @@ iface = gr.Interface(
20
  fn=ocr_infer,
21
  inputs=gr.Image(type="pil"),
22
  outputs="text",
23
- title="Image to Text (OCR) ver3",
24
  description="Upload a handwritten or printed image to extract text using TrOCR."
25
  )
26
 
27
  if __name__ == "__main__":
28
- iface.launch(share=True, debug=False, show_api=True, live=True)
 
29
 
 
20
  fn=ocr_infer,
21
  inputs=gr.Image(type="pil"),
22
  outputs="text",
23
+ title="Image to Text (OCR) ver4",
24
  description="Upload a handwritten or printed image to extract text using TrOCR."
25
  )
26
 
27
  if __name__ == "__main__":
28
+ iface.launch(share=True)
29
+
30