Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,8 @@ def predict(image_path,mode):
|
|
11 |
texts = ocr_recognize.predict(image_path)
|
12 |
else:
|
13 |
texts = ocr_detect.predict(image_path)
|
|
|
|
|
14 |
return texts
|
15 |
|
16 |
|
|
|
11 |
texts = ocr_recognize.predict(image_path)
|
12 |
else:
|
13 |
texts = ocr_detect.predict(image_path)
|
14 |
+
|
15 |
+
texts = texts[0]
|
16 |
return texts
|
17 |
|
18 |
|