fionasu commited on
Commit
ad41c44
·
verified ·
1 Parent(s): 23a71b3

tried to fix the chatbot error

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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: