Spaces:
Sleeping
Sleeping
Update app.py ver3
Browse files
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 |
+
|