ChristopherMarais commited on
Commit
c72954f
·
verified ·
1 Parent(s): 76e43d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ def initialize_qa_chain(temperature, max_tokens, top_k, vector_db):
58
  if vector_db is None:
59
  return None
60
 
61
- HF_TOKEN = os.getenv("AMAbot", "") # use for publishing
62
  if not HF_TOKEN:
63
  raise ValueError("Missing HF_TOKEN environment variable!")
64
 
@@ -184,7 +184,7 @@ def get_assistant_response(message, history, max_tokens, temperature, top_p, qa_
184
  return history, {"qa_chain": qa_chain}
185
 
186
 
187
- HF_TOKEN = os.getenv("AMAbot", "") # use for publishing
188
  if not HF_TOKEN:
189
  raise ValueError("Missing HF_TOKEN environment variable!")
190
  # Global InferenceClient for plain chat (fallback)
 
58
  if vector_db is None:
59
  return None
60
 
61
+ HF_TOKEN = os.getenv("AMAbot_r", "") # use for publishing
62
  if not HF_TOKEN:
63
  raise ValueError("Missing HF_TOKEN environment variable!")
64
 
 
184
  return history, {"qa_chain": qa_chain}
185
 
186
 
187
+ HF_TOKEN = os.getenv("AMAbot_r", "") # use for publishing
188
  if not HF_TOKEN:
189
  raise ValueError("Missing HF_TOKEN environment variable!")
190
  # Global InferenceClient for plain chat (fallback)