ppsingh commited on
Commit
ac14d89
·
verified ·
1 Parent(s): 17c6e18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=False)
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):