Spaces:
Sleeping
Sleeping
tried to fix the chatbot error
Browse files
app.py
CHANGED
|
@@ -120,8 +120,12 @@ def respond(message, history,use_spanish, destinations, season, luggage_types, l
|
|
| 120 |
max_tokens = 1000,
|
| 121 |
temperature = 1
|
| 122 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
-
return response['choices'][0]['message']['content'].strip()
|
| 125 |
|
| 126 |
|
| 127 |
with gr.Blocks() as demo:
|
|
|
|
| 120 |
max_tokens = 1000,
|
| 121 |
temperature = 1
|
| 122 |
)
|
| 123 |
+
|
| 124 |
+
reply = response['choices'][0]['message']['content'].strip()
|
| 125 |
+
history.append((message, reply))
|
| 126 |
+
return history, ""
|
| 127 |
|
| 128 |
+
#return response['choices'][0]['message']['content'].strip()
|
| 129 |
|
| 130 |
|
| 131 |
with gr.Blocks() as demo:
|