Spaces:
Sleeping
Sleeping
PadmasaliGovardhan
commited on
Commit
·
e4cf488
1
Parent(s):
8bc851c
final update
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -107,7 +107,7 @@ async def upload_pdf(file: UploadFile = File(...)):
|
|
| 107 |
return {"status": "error", "detail": "Uploaded PDF contains no extractable text."}
|
| 108 |
|
| 109 |
chunks = rag.add_notes(text)
|
| 110 |
-
return {"status": "success", "message": f"{
|
| 111 |
except Exception as e:
|
| 112 |
import traceback
|
| 113 |
return {
|
|
|
|
| 107 |
return {"status": "error", "detail": "Uploaded PDF contains no extractable text."}
|
| 108 |
|
| 109 |
chunks = rag.add_notes(text)
|
| 110 |
+
return {"status": "success", "message": f"{filename} is uploaded sucessfully...!"}
|
| 111 |
except Exception as e:
|
| 112 |
import traceback
|
| 113 |
return {
|