soiz1 commited on
Commit
08db83f
·
verified ·
1 Parent(s): b52aac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -194,7 +194,7 @@ def ocr_api():
194
  # choose call method depending on available API
195
  if hasattr(ocr, "ocr"):
196
  # classic API: ocr.ocr(image_path, cls=True/False)
197
- result = ocr.ocr(img_path, cls=use_doc_orientation_classify)
198
  elif hasattr(ocr, "predict"):
199
  # some wrappers use predict()
200
  result = ocr.predict(img_path)
 
194
  # choose call method depending on available API
195
  if hasattr(ocr, "ocr"):
196
  # classic API: ocr.ocr(image_path, cls=True/False)
197
+ result = ocr.predict(img_path, det=True, rec=True)
198
  elif hasattr(ocr, "predict"):
199
  # some wrappers use predict()
200
  result = ocr.predict(img_path)