Spaces:
Running
on
T4
Running
on
T4
handling hfapi issue
Browse files
app.py
CHANGED
@@ -51,7 +51,8 @@ scheduler = CommitScheduler(
|
|
51 |
try:
|
52 |
vectorstores = get_local_qdrant()
|
53 |
except Exception as e:
|
54 |
-
|
|
|
55 |
|
56 |
#####---------------------CHAT-----------------------------------------------------
|
57 |
def start_chat(query,history):
|
|
|
51 |
try:
|
52 |
vectorstores = get_local_qdrant()
|
53 |
except Exception as e:
|
54 |
+
api = HfApi()
|
55 |
+
api.restart_space(repo_id = "GIZ/audit_assistant")
|
56 |
|
57 |
#####---------------------CHAT-----------------------------------------------------
|
58 |
def start_chat(query,history):
|