Spaces:
Sleeping
Sleeping
pragnakalp
commited on
Commit
•
13ef7e9
1
Parent(s):
69f9615
Update app.py
Browse files
app.py
CHANGED
@@ -80,12 +80,12 @@ def generate_ocr(Method,img):
|
|
80 |
text_output = ocr_with_keras(img)
|
81 |
if Method == 'PaddleOCR':
|
82 |
text_output = ocr_with_paddle(img)
|
83 |
-
|
84 |
-
flag(Method,text_output,img)
|
85 |
|
86 |
else:
|
87 |
raise gr.Error("Please upload an image!!!!")
|
88 |
-
|
89 |
# except Exception as e:
|
90 |
# print("Error in ocr generation ==>",e)
|
91 |
# text_output = "Something went wrong"
|
|
|
80 |
text_output = ocr_with_keras(img)
|
81 |
if Method == 'PaddleOCR':
|
82 |
text_output = ocr_with_paddle(img)
|
83 |
+
return text_output
|
84 |
+
# flag(Method,text_output,img)
|
85 |
|
86 |
else:
|
87 |
raise gr.Error("Please upload an image!!!!")
|
88 |
+
|
89 |
# except Exception as e:
|
90 |
# print("Error in ocr generation ==>",e)
|
91 |
# text_output = "Something went wrong"
|