Spaces:
Sleeping
Sleeping
Commit
·
60dcdbe
1
Parent(s):
bb971ee
fix issues response
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ async def generate_response(user_input):
|
|
| 22 |
stream=False
|
| 23 |
)
|
| 24 |
|
| 25 |
-
return response
|
| 26 |
|
| 27 |
demo = gr.Interface(
|
| 28 |
fn=generate_response,
|
|
|
|
| 22 |
stream=False
|
| 23 |
)
|
| 24 |
|
| 25 |
+
return response.choices[0].message.content
|
| 26 |
|
| 27 |
demo = gr.Interface(
|
| 28 |
fn=generate_response,
|