Spaces:
Sleeping
Sleeping
pragnakalp
commited on
Commit
•
184b6ac
1
Parent(s):
1e53faf
Update app.py
Browse files
app.py
CHANGED
@@ -99,8 +99,8 @@ def generate_ocr(Method,img):
|
|
99 |
Create user interface for OCR demo
|
100 |
"""
|
101 |
|
102 |
-
|
103 |
-
image = gr.Image()
|
104 |
method = gr.Radio(["PaddleOCR","EasyOCR", "KerasOCR"],value="PaddleOCR")
|
105 |
output = gr.Textbox(label="Output")
|
106 |
|
@@ -116,5 +116,5 @@ demo = gr.Interface(
|
|
116 |
|
117 |
|
118 |
)
|
119 |
-
|
120 |
-
demo.launch()
|
|
|
99 |
Create user interface for OCR demo
|
100 |
"""
|
101 |
|
102 |
+
image = gr.Image(shape=(300, 300))
|
103 |
+
# image = gr.Image()
|
104 |
method = gr.Radio(["PaddleOCR","EasyOCR", "KerasOCR"],value="PaddleOCR")
|
105 |
output = gr.Textbox(label="Output")
|
106 |
|
|
|
116 |
|
117 |
|
118 |
)
|
119 |
+
demo.launch(enable_queue = False)
|
120 |
+
# demo.launch()
|