bwbai commited on
Commit
2de4db9
·
1 Parent(s): 95b62b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(file.name)
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",