Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,6 +185,7 @@ def process_input(image=None, file=None, audio=None, text="", translateto = "Eng
|
|
| 185 |
lang_code = get_language_code(translatefrom)
|
| 186 |
ocr_processor = OCRProcessor(lang_code)
|
| 187 |
final_text = text
|
|
|
|
| 188 |
if image is not None:
|
| 189 |
ocr_prediction = ocr_processor.process_image(image)
|
| 190 |
for idx in range(len((list(ocr_prediction)[0][1]))):
|
|
|
|
| 185 |
lang_code = get_language_code(translatefrom)
|
| 186 |
ocr_processor = OCRProcessor(lang_code)
|
| 187 |
final_text = text
|
| 188 |
+
print("Image :", image)
|
| 189 |
if image is not None:
|
| 190 |
ocr_prediction = ocr_processor.process_image(image)
|
| 191 |
for idx in range(len((list(ocr_prediction)[0][1]))):
|