Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def generate_response(prompt):
|
|
20 |
],
|
21 |
model="gpt-4o-mini",
|
22 |
)
|
23 |
-
return response.choices[0].
|
24 |
except Exception as e:
|
25 |
return f"Error: {str(e)}"
|
26 |
|
|
|
20 |
],
|
21 |
model="gpt-4o-mini",
|
22 |
)
|
23 |
+
return response.choices[0].message["content"]
|
24 |
except Exception as e:
|
25 |
return f"Error: {str(e)}"
|
26 |
|