pragnakalp commited on
Commit
f0ccfe1
1 Parent(s): 13ef7e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -80,9 +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
- return text_output
84
- # flag(Method,text_output,img)
85
-
 
 
 
86
  else:
87
  raise gr.Error("Please upload an image!!!!")
88
 
 
80
  text_output = ocr_with_keras(img)
81
  if Method == 'PaddleOCR':
82
  text_output = ocr_with_paddle(img)
83
+
84
+ try:
85
+ flag(Method,text_output,img)
86
+ except e:
87
+ print(e)
88
+ return text_output
89
  else:
90
  raise gr.Error("Please upload an image!!!!")
91