Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -11,7 +11,7 @@ primary = "mistralai/Mistral-7B-Instruct-v0.2"
|
|
11 |
fallbacks = ["mistralai/Mistral-7B-Instruct-v0.2", "mistralai/Mistral-7B-Instruct-v0.2"]
|
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/Mistral-7B-Instruct-v0.2", "mistralai/Mistral-7B-Instruct-v0.2"]
|
12 |
|
13 |
# Load Hugging Face API Key
|
14 |
+
HF_API_KEY = os.getenv("HF_API_TOKEN") # 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:
|