anamjafar6 commited on
Commit
35ccfcf
·
verified ·
1 Parent(s): 09a7c3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = st.secrets.get("GROQ_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