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