Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,8 @@ def save_pdf(file, title):
|
|
| 56 |
pickle.dump(chunks, f)
|
| 57 |
|
| 58 |
# Upload to hub
|
| 59 |
-
upload_to_hub(index_path, f"{title}/index.faiss")
|
| 60 |
-
upload_to_hub(chunks_path, f"{title}/chunks.pkl")
|
| 61 |
|
| 62 |
return f"✅ Saved and indexed '{title}', and uploaded to Hub."
|
| 63 |
|
|
|
|
| 56 |
pickle.dump(chunks, f)
|
| 57 |
|
| 58 |
# Upload to hub
|
| 59 |
+
upload_to_hub(index_path, f"data/{title}/index.faiss")
|
| 60 |
+
upload_to_hub(chunks_path, f"data/{title}/chunks.pkl")
|
| 61 |
|
| 62 |
return f"✅ Saved and indexed '{title}', and uploaded to Hub."
|
| 63 |
|