Spaces:
Runtime error
Runtime error
Fix db path
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def initialize_agents(config_list, docs_path=None):
|
|
55 |
"docs_path": docs_path,
|
56 |
"chunk_token_size": 2000,
|
57 |
"model": config_list[0]["model"],
|
58 |
-
"client": chromadb.PersistentClient(path="/tmp/
|
59 |
"embedding_model": "all-mpnet-base-v2",
|
60 |
"customized_prompt": PROMPT_DEFAULT,
|
61 |
},
|
@@ -175,7 +175,7 @@ with gr.Blocks() as demo:
|
|
175 |
def update_context_url(context_url):
|
176 |
global assistant, ragproxyagent
|
177 |
try:
|
178 |
-
shutil.rmtree("/tmp/
|
179 |
except:
|
180 |
pass
|
181 |
assistant, ragproxyagent = initialize_agents(config_list, docs_path=context_url)
|
|
|
55 |
"docs_path": docs_path,
|
56 |
"chunk_token_size": 2000,
|
57 |
"model": config_list[0]["model"],
|
58 |
+
"client": chromadb.PersistentClient(path="/tmp/chromadb"),
|
59 |
"embedding_model": "all-mpnet-base-v2",
|
60 |
"customized_prompt": PROMPT_DEFAULT,
|
61 |
},
|
|
|
175 |
def update_context_url(context_url):
|
176 |
global assistant, ragproxyagent
|
177 |
try:
|
178 |
+
shutil.rmtree("/tmp/chromadb/")
|
179 |
except:
|
180 |
pass
|
181 |
assistant, ragproxyagent = initialize_agents(config_list, docs_path=context_url)
|