pragnakalp
commited on
Commit
•
411ef09
1
Parent(s):
d8d40de
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 |
-
image = gr.Image(shape=(300, 300))
|
103 |
-
|
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 |
-
demo.launch(enable_queue = False)
|
120 |
-
|
|
|
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()
|