peiji commited on
Commit
4f01ca6
·
verified ·
1 Parent(s): 95c75f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def handle_click(chatbot, fix_input, ep, ak, sk, evt:gr.SelectData):
87
  lines[cnt]['messages'][index + 1 + j]['content'] = fix_input
88
  return chatbot, ""
89
 
90
- if j == 0:
91
  return chatbot
92
 
93
  messages = [
 
87
  lines[cnt]['messages'][index + 1 + j]['content'] = fix_input
88
  return chatbot, ""
89
 
90
+ if j == 0 or ep is None or ak is None or sk is None:
91
  return chatbot
92
 
93
  messages = [