AamerAkhter commited on
Commit
de9df1d
·
verified ·
1 Parent(s): 1822049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,10 +4,9 @@ from groq import Groq
4
 
5
  # --- API Setup ---
6
  # Hugging Face Spaces reads secrets as Environment Variables
7
- # We are now strictly looking for the secret named "EngGloss"
8
  api_key = os.getenv("EngGloss")
9
 
10
- # Check for key availability (helps debugging)
11
  if not api_key:
12
  raise ValueError("API Key not found! Please go to your Space 'Settings' > 'Secrets' and create a secret named 'EngGloss' containing your Groq API key.")
13
 
@@ -56,7 +55,8 @@ def explain_term(term):
56
  "content": term,
57
  }
58
  ],
59
- model="llama3-8b-8192", # Fast and efficient
 
60
  temperature=0.5,
61
  max_tokens=600,
62
  )
 
4
 
5
  # --- API Setup ---
6
  # Hugging Face Spaces reads secrets as Environment Variables
 
7
  api_key = os.getenv("EngGloss")
8
 
9
+ # Check for key availability
10
  if not api_key:
11
  raise ValueError("API Key not found! Please go to your Space 'Settings' > 'Secrets' and create a secret named 'EngGloss' containing your Groq API key.")
12
 
 
55
  "content": term,
56
  }
57
  ],
58
+ # UPDATED MODEL NAME HERE
59
+ model="llama-3.1-8b-instant",
60
  temperature=0.5,
61
  max_tokens=600,
62
  )