Bofandra commited on
Commit
dd15c57
·
verified ·
1 Parent(s): 3c81de9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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