Spaces:
Running
Running
Update app.py
Browse files
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)
|
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 |
|