jashdoshi77 commited on
Commit
e506a23
·
1 Parent(s): 9995142

Update error message to mention HF Spaces secrets

Browse files
Files changed (1) hide show
  1. backend/llm.py +2 -1
backend/llm.py CHANGED
@@ -15,7 +15,8 @@ _GROQ_API_KEY = os.getenv("GROQ_API_KEY", "")
15
  if not _GROQ_API_KEY or _GROQ_API_KEY == "your_groq_api_key_here":
16
  raise RuntimeError(
17
  "GROQ_API_KEY is not set. "
18
- "Please add your key to the .env file in the project root."
 
19
  )
20
 
21
  # Shared LLM instance – llama-3.3-70b-versatile on Groq for speed + quality
 
15
  if not _GROQ_API_KEY or _GROQ_API_KEY == "your_groq_api_key_here":
16
  raise RuntimeError(
17
  "GROQ_API_KEY is not set. "
18
+ "Please add your key to the .env file in the project root, "
19
+ "or set it as a Secret in your Hugging Face Space settings."
20
  )
21
 
22
  # Shared LLM instance – llama-3.3-70b-versatile on Groq for speed + quality