Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -112,7 +112,7 @@ async def ingest_document(file: UploadFile = File(...)):
|
|
| 112 |
f.write(await file.read())
|
| 113 |
|
| 114 |
# Run the ingestion script
|
| 115 |
-
process = subprocess.run(["python", "
|
| 116 |
|
| 117 |
# Reload vectorstore inline
|
| 118 |
startup_event()
|
|
|
|
| 112 |
f.write(await file.read())
|
| 113 |
|
| 114 |
# Run the ingestion script
|
| 115 |
+
process = subprocess.run(["python", "ingest.py"], capture_output=True, text=True)
|
| 116 |
|
| 117 |
# Reload vectorstore inline
|
| 118 |
startup_event()
|