sunbal7 commited on
Commit
df4bf8e
·
verified ·
1 Parent(s): 2c6c28a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -38,9 +38,10 @@ def query_groq(prompt, temperature=0.5):
38
  try:
39
  chat = groq_client.chat.completions.create(
40
  messages=[{"role": "user", "content": prompt}],
41
- model="mixtral-8x7b-32768",
42
  temperature=temperature
43
- )
 
44
  return chat.choices[0].message.content.strip()
45
  except Exception as e:
46
  return f"⚠️ Groq API Error: {str(e)}"
 
38
  try:
39
  chat = groq_client.chat.completions.create(
40
  messages=[{"role": "user", "content": prompt}],
41
+ model="llama3-8b-8192",
42
  temperature=temperature
43
+ )
44
+
45
  return chat.choices[0].message.content.strip()
46
  except Exception as e:
47
  return f"⚠️ Groq API Error: {str(e)}"