Update app.py
Browse files
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 |
|