2nd fixes to /upload
Browse files
app.py
CHANGED
|
@@ -152,6 +152,7 @@ async def upload_file(file: UploadFile = File(...)):
|
|
| 152 |
|
| 153 |
SESSION_DATA[session_id] = {
|
| 154 |
"filename": file.filename,
|
|
|
|
| 155 |
"index": faiss.write_index_buf(index), # Store the index as bytes
|
| 156 |
}
|
| 157 |
|
|
|
|
| 152 |
|
| 153 |
SESSION_DATA[session_id] = {
|
| 154 |
"filename": file.filename,
|
| 155 |
+
"chunks": text_chunks,
|
| 156 |
"index": faiss.write_index_buf(index), # Store the index as bytes
|
| 157 |
}
|
| 158 |
|