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

Update app.py ver3

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,9 +20,10 @@ iface = gr.Interface(
20
  fn=ocr_infer,
21
  inputs=gr.Image(type="pil"),
22
  outputs="text",
23
- title="Image to Text (OCR)",
24
  description="Upload a handwritten or printed image to extract text using TrOCR."
25
  )
26
 
27
  if __name__ == "__main__":
28
- iface.launch()
 
 
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
+