Spaces:
Sleeping
Sleeping
Update app.py
Browse files140 unmodified lines1411421431441451465 unmodified lines152153154155156157140 unmodified lines)try:response = client.chat.completions.create(model="openai/gpt-oss-20B", # or openai/gpt-oss-20b if supportedmessages=[5 unmodified linestop_p=1,stream=False)# Extract content safelyif hasattr(response.choices[0].message, "content"):140 unmodified lines1411421431441451461475 unmodified lines153154155156157158159140 unmodified lines)try:print(f"🔍 Calling Groq API for location: {location}")response = client.chat.completions.create(model="openai/gpt-oss-20B", # or openai/gpt-oss-20b if supportedmessages=[5 unmodified linestop_p=1,stream=False)print("✅ Received response from API.")# Extract content safelyif hasattr(response.choices[0].message, "content"):
app.py+2