Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,6 +68,7 @@ class OCRProcessor:
|
|
68 |
return predictions[0] # Assuming the first item in predictions contains the desired text
|
69 |
|
70 |
def process_input(image=None, file=None, audio=None, text=""):
|
|
|
71 |
final_text = text
|
72 |
if image is not None:
|
73 |
final_text += "\n" + ocr_processor.process_image(image)
|
|
|
68 |
return predictions[0] # Assuming the first item in predictions contains the desired text
|
69 |
|
70 |
def process_input(image=None, file=None, audio=None, text=""):
|
71 |
+
ocr_processor = OCRProcessor()
|
72 |
final_text = text
|
73 |
if image is not None:
|
74 |
final_text += "\n" + ocr_processor.process_image(image)
|