Update app.py

pull/196/head
Alex 2 years ago
parent 9ba86bc174
commit 4a7670f2aa

@ -129,7 +129,10 @@ def api_answer():
# check if the vectorstore is set # check if the vectorstore is set
if "active_docs" in data: if "active_docs" in data:
if data["active_docs"].split("/")[0] == "local": if data["active_docs"].split("/")[0] == "local":
vectorstore = "indexes/" + data["active_docs"] if data["active_docs"].split("/")[1] == "default":
vectorstore = ""
else:
vectorstore = "indexes/" + data["active_docs"]
else: else:
vectorstore = "vectors/" + data["active_docs"] vectorstore = "vectors/" + data["active_docs"]
if data['active_docs'] == "default": if data['active_docs'] == "default":

Loading…
Cancel
Save