hugforziio commited on
Commit
4823a74
1 Parent(s): b8024f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -172,7 +172,7 @@ def on_click_send_btn(
172
  chat_last_resp_dict['organization'] = "hidden by UI"
173
  chat_last_resp = json.dumps(chat_last_resp_dict)
174
 
175
- return json.dumps(new_state), chat_log, chat_log_md, chat_log_md, chat_last_resp, props_json, ''
176
  except Exception as error:
177
  print(error)
178
  print('error!!!!!!')
@@ -193,7 +193,7 @@ def on_click_send_btn(
193
 
194
  chat_log_md += "\n"
195
  chat_log_md += str(error)
196
- return json.dumps(new_state), chat_log, chat_log_md, chat_log_md, None, props_json, chat_input
197
 
198
 
199
  def clear_history():
 
172
  chat_last_resp_dict['organization'] = "hidden by UI"
173
  chat_last_resp = json.dumps(chat_last_resp_dict)
174
 
175
+ yield json.dumps(new_state), chat_log, chat_log_md, chat_log_md, chat_last_resp, props_json, ''
176
  except Exception as error:
177
  print(error)
178
  print('error!!!!!!')
 
193
 
194
  chat_log_md += "\n"
195
  chat_log_md += str(error)
196
+ yield json.dumps(new_state), chat_log, chat_log_md, chat_log_md, None, props_json, chat_input
197
 
198
 
199
  def clear_history():