Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -184,7 +184,9 @@ def get_assistant_response(message, history, max_tokens, temperature, top_p, qa_
|
|
| 184 |
return history, {"qa_chain": qa_chain}
|
| 185 |
|
| 186 |
|
| 187 |
-
|
|
|
|
|
|
|
| 188 |
# Global InferenceClient for plain chat (fallback)
|
| 189 |
client = InferenceClient("deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
|
| 190 |
token=HF_TOKEN)
|
|
|
|
| 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)
|
| 191 |
client = InferenceClient("deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
|
| 192 |
token=HF_TOKEN)
|