MQAnh commited on
Commit
ceccc0c
·
verified ·
1 Parent(s): 8f40594

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,11 +20,11 @@ iface = gr.Interface(
20
  fn=ocr_infer,
21
  inputs=gr.Image(type="pil"),
22
  outputs="text",
23
- title="Image to Text (OCR) ver5",
24
  description="Upload a handwritten or printed image to extract text using TrOCR."
25
  )
26
 
27
 
28
- iface.launch()
29
 
30
 
 
20
  fn=ocr_infer,
21
  inputs=gr.Image(type="pil"),
22
  outputs="text",
23
+ title="Image to Text (OCR) ver6",
24
  description="Upload a handwritten or printed image to extract text using TrOCR."
25
  )
26
 
27
 
28
+ iface.launch(share=True, allowed_origins=["*"])
29
 
30