Update app.py
Browse files
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, ""
|