Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ import json
|
|
24 |
|
25 |
# fetch tokens and model config params
|
26 |
SPACES_LOG = os.environ["SPACES_LOG"]
|
|
|
27 |
model_config = getconfig("model_params.cfg")
|
28 |
|
29 |
# create the local logs repo
|
@@ -52,7 +53,7 @@ try:
|
|
52 |
vectorstores = get_local_qdrant()
|
53 |
except Exception as e:
|
54 |
api = HfApi()
|
55 |
-
api.restart_space(repo_id = "GIZ/audit_assistant", token=
|
56 |
|
57 |
#####---------------------CHAT-----------------------------------------------------
|
58 |
def start_chat(query,history):
|
|
|
24 |
|
25 |
# fetch tokens and model config params
|
26 |
SPACES_LOG = os.environ["SPACES_LOG"]
|
27 |
+
audit_space = os.environ["audit_space"]
|
28 |
model_config = getconfig("model_params.cfg")
|
29 |
|
30 |
# create the local logs repo
|
|
|
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):
|