Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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)}"
|