Spaces:
Sleeping
Sleeping
Remove hardcoded HF token for security
Browse files- src/search_final.py +2 -2
src/search_final.py
CHANGED
|
@@ -78,8 +78,8 @@ except Exception as e:
|
|
| 78 |
raise
|
| 79 |
|
| 80 |
# ---------------- Hugging Face Mistral API ----------------
|
| 81 |
-
#HF_TOKEN
|
| 82 |
-
#HF_MODEL = "mistralai/Mistral-7B-Instruct-v0.2:featherless-ai"
|
| 83 |
|
| 84 |
def get_mistral_answer(query: str, context: str) -> str:
|
| 85 |
"""
|
|
|
|
| 78 |
raise
|
| 79 |
|
| 80 |
# ---------------- Hugging Face Mistral API ----------------
|
| 81 |
+
# HF_TOKEN and HF_MODEL should be set via environment variables
|
| 82 |
+
# HF_MODEL = "mistralai/Mistral-7B-Instruct-v0.2:featherless-ai"
|
| 83 |
|
| 84 |
def get_mistral_answer(query: str, context: str) -> str:
|
| 85 |
"""
|