Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -232,12 +232,7 @@ def build_qa_chain(collection_name, vector_db, file: str):
|
|
| 232 |
"""
|
| 233 |
|
| 234 |
#vincent added to handle the tenant problem 20250211
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
vector_db = gr.State()
|
| 238 |
-
chain = gr.State()
|
| 239 |
-
collection_name = gr.State()
|
| 240 |
-
|
| 241 |
new_client = chromadb.EphemeralClient()
|
| 242 |
memory = ConversationBufferMemory(
|
| 243 |
memory_key="chat_history",
|
|
|
|
| 232 |
"""
|
| 233 |
|
| 234 |
#vincent added to handle the tenant problem 20250211
|
| 235 |
+
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
new_client = chromadb.EphemeralClient()
|
| 237 |
memory = ConversationBufferMemory(
|
| 238 |
memory_key="chat_history",
|