pragnakalp commited on
Commit
69f9615
1 Parent(s): c0ff73d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,10 +82,10 @@ def generate_ocr(Method,img):
82
  text_output = ocr_with_paddle(img)
83
 
84
  flag(Method,text_output,img)
85
- return text_output
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"
 
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
+ return text_output
89
  # except Exception as e:
90
  # print("Error in ocr generation ==>",e)
91
  # text_output = "Something went wrong"