Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,10 +36,10 @@ def custom_chat(user_input):
|
|
| 36 |
|
| 37 |
def dothis(file):
|
| 38 |
# if __name__ == '__main__': # To ensure correct behavior on Windows and macOS
|
| 39 |
-
ocrmypdf.ocr( file, 'output.pdf',
|
| 40 |
deskew=True,
|
| 41 |
force_ocr=True)
|
| 42 |
-
return str(
|
| 43 |
|
| 44 |
#demo = gr.Interface(fn=custom_chat,
|
| 45 |
# inputs="text",
|
|
|
|
| 36 |
|
| 37 |
def dothis(file):
|
| 38 |
# if __name__ == '__main__': # To ensure correct behavior on Windows and macOS
|
| 39 |
+
out = ocrmypdf.ocr( file, 'output.pdf',
|
| 40 |
deskew=True,
|
| 41 |
force_ocr=True)
|
| 42 |
+
return str(out)
|
| 43 |
|
| 44 |
#demo = gr.Interface(fn=custom_chat,
|
| 45 |
# inputs="text",
|