Spaces:
Runtime error
Runtime error
Sean-Case
commited on
Commit
•
bc459f6
1
Parent(s):
9118536
New file uploads no longer write a global variable so hopefully not shared between sessions
Browse files
app.py
CHANGED
@@ -78,11 +78,11 @@ def docs_to_faiss_save(docs_out:PandasDataFrame, embeddings=embeddings):
|
|
78 |
# os.mkdir(save_to)
|
79 |
# vectorstore_func.save_local(folder_path=save_to)
|
80 |
|
81 |
-
global vectorstore
|
82 |
|
83 |
-
vectorstore = vectorstore_func
|
84 |
|
85 |
-
chatf.vectorstore =
|
86 |
|
87 |
out_message = "Document processing complete"
|
88 |
|
|
|
78 |
# os.mkdir(save_to)
|
79 |
# vectorstore_func.save_local(folder_path=save_to)
|
80 |
|
81 |
+
#global vectorstore
|
82 |
|
83 |
+
#vectorstore = vectorstore_func
|
84 |
|
85 |
+
chatf.vectorstore = vectorstore_func
|
86 |
|
87 |
out_message = "Document processing complete"
|
88 |
|