Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -11,7 +11,7 @@ primary = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
| 11 |
fallbacks = ["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mixtral-8x7B-Instruct-v0.1"]
|
| 12 |
|
| 13 |
# Load Hugging Face API Key
|
| 14 |
-
HF_API_KEY = os.getenv("
|
| 15 |
|
| 16 |
# If no env variable is set, manually define it (not recommended)
|
| 17 |
if not HF_API_KEY:
|
|
|
|
| 11 |
fallbacks = ["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mixtral-8x7B-Instruct-v0.1"]
|
| 12 |
|
| 13 |
# Load Hugging Face API Key
|
| 14 |
+
HF_API_KEY = os.getenv("HF_API_TOKENI") # Get API key from environment variables
|
| 15 |
|
| 16 |
# If no env variable is set, manually define it (not recommended)
|
| 17 |
if not HF_API_KEY:
|