Spaces:
Sleeping
Sleeping
Commit
·
6fcae9a
1
Parent(s):
b2d72b4
Empty message display fix
Browse files- ui/coding.py +3 -0
ui/coding.py
CHANGED
|
@@ -87,6 +87,9 @@ def send_request(
|
|
| 87 |
audio_created += 1
|
| 88 |
has_audio_item = True
|
| 89 |
|
|
|
|
|
|
|
|
|
|
| 90 |
yield chat_history, chat_display, code, audio_chunk
|
| 91 |
|
| 92 |
|
|
|
|
| 87 |
audio_created += 1
|
| 88 |
has_audio_item = True
|
| 89 |
|
| 90 |
+
if chat_display and len(chat_display) > 1 and chat_display[-1][1] == "" and chat_display[-2][1]:
|
| 91 |
+
chat_display.pop()
|
| 92 |
+
|
| 93 |
yield chat_history, chat_display, code, audio_chunk
|
| 94 |
|
| 95 |
|