Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,11 +46,12 @@ def call_groq_api(prompt):
|
|
| 46 |
}
|
| 47 |
|
| 48 |
data = {
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
}
|
| 53 |
|
|
|
|
| 54 |
try:
|
| 55 |
response = requests.post("https://api.groq.com/openai/v1/chat/completions", json=data, headers=headers)
|
| 56 |
if response.status_code != 200:
|
|
|
|
| 46 |
}
|
| 47 |
|
| 48 |
data = {
|
| 49 |
+
"model": "llama-3.3-70b-versatile",
|
| 50 |
+
"messages": [{"role": "user", "content": prompt}],
|
| 51 |
+
"temperature": 0.7
|
| 52 |
}
|
| 53 |
|
| 54 |
+
|
| 55 |
try:
|
| 56 |
response = requests.post("https://api.groq.com/openai/v1/chat/completions", json=data, headers=headers)
|
| 57 |
if response.status_code != 200:
|