PirateXX commited on
Commit
2fae4f3
·
1 Parent(s): 626bd56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def upload_file(file):
21
  if cnt>5:
22
  break
23
  text = text.replace('\n', ' ')
24
- return text
25
  else:
26
  return {"error":'No PDF file found in request'}
27
 
 
21
  if cnt>5:
22
  break
23
  text = text.replace('\n', ' ')
24
+ return {"text": text}
25
  else:
26
  return {"error":'No PDF file found in request'}
27