Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ def respond(message, history):
|
|
| 145 |
temperature=0.2
|
| 146 |
)
|
| 147 |
|
| 148 |
-
return response['choices'][0
|
| 149 |
|
| 150 |
|
| 151 |
with gr.Blocks(theme = gr.themes.Glass(
|
|
|
|
| 145 |
temperature=0.2
|
| 146 |
)
|
| 147 |
|
| 148 |
+
return response['choices'][0]['message']['content'].strip()
|
| 149 |
|
| 150 |
|
| 151 |
with gr.Blocks(theme = gr.themes.Glass(
|