ppsingh commited on
Commit
716b750
·
verified ·
1 Parent(s): 2204865

handling hfapi issue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -51,7 +51,8 @@ scheduler = CommitScheduler(
51
  try:
52
  vectorstores = get_local_qdrant()
53
  except Exception as e:
54
- HfApi.restart_space(repo_id = "GIZ/audit_assistant")
 
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):