Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -49,11 +49,11 @@ scheduler = CommitScheduler(
|
|
49 |
# hence, comment out line below when creating for first time
|
50 |
#vectorstores = load_chunks()
|
51 |
# once the vectore embeddings are created we will use qdrant client to access these
|
52 |
-
try:
|
53 |
-
|
54 |
-
except Exception as e:
|
55 |
-
api = HfApi()
|
56 |
-
api.restart_space(repo_id = "GIZ/audit_assistant", token=audit_space)
|
57 |
|
58 |
#####---------------------CHAT-----------------------------------------------------
|
59 |
def start_chat(query,history):
|
|
|
49 |
# hence, comment out line below when creating for first time
|
50 |
#vectorstores = load_chunks()
|
51 |
# once the vectore embeddings are created we will use qdrant client to access these
|
52 |
+
#try:
|
53 |
+
vectorstores = get_local_qdrant()
|
54 |
+
#except Exception as e:
|
55 |
+
# api = HfApi()
|
56 |
+
# api.restart_space(repo_id = "GIZ/audit_assistant", token=audit_space)
|
57 |
|
58 |
#####---------------------CHAT-----------------------------------------------------
|
59 |
def start_chat(query,history):
|