peiji commited on
Commit
f8bca10
·
verified ·
1 Parent(s): c15c9b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def handle_click(chatbot, fix_input, ep, ak, sk, evt:gr.SelectData):
83
  index, j = evt.index
84
  if j == 0:
85
  return chatbot
86
- if fix_input is not None:
87
  chatbot[index][-1]=fix_input
88
  lines[cnt]['messages'][index + 1 + 1]['content'] = fix_input
89
  return chatbot, ""
 
83
  index, j = evt.index
84
  if j == 0:
85
  return chatbot
86
+ if fix_input is not None and len(fix_input.strip()) !=0:
87
  chatbot[index][-1]=fix_input
88
  lines[cnt]['messages'][index + 1 + 1]['content'] = fix_input
89
  return chatbot, ""