Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ except ImportError:
|
|
| 18 |
# -----------------------------
|
| 19 |
def load_api_key() -> str:
|
| 20 |
"""Load the GROQ API key from Hugging Face secrets or env vars."""
|
| 21 |
-
api_key =
|
| 22 |
if not api_key:
|
| 23 |
try:
|
| 24 |
from huggingface_hub import HfFolder
|
|
|
|
| 18 |
# -----------------------------
|
| 19 |
def load_api_key() -> str:
|
| 20 |
"""Load the GROQ API key from Hugging Face secrets or env vars."""
|
| 21 |
+
api_key = os.getenv("GROQ_API_KEY")
|
| 22 |
if not api_key:
|
| 23 |
try:
|
| 24 |
from huggingface_hub import HfFolder
|