geronimo-pericoli
commited on
Commit
•
f13c1bf
1
Parent(s):
dd5c6ef
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,9 @@ with gr.Blocks(theme='sudeepshouche/minimalist') as demo:
|
|
158 |
# Verificar si el mensaje está vacío o no contiene nada
|
159 |
if not message.strip():
|
160 |
gr.Info("Escribe un mensaje en el chat")
|
161 |
-
|
|
|
|
|
162 |
|
163 |
# Si chat_history está vacío, inicialízalo con el mensaje del usuario actual
|
164 |
if not chat_history:
|
|
|
158 |
# Verificar si el mensaje está vacío o no contiene nada
|
159 |
if not message.strip():
|
160 |
gr.Info("Escribe un mensaje en el chat")
|
161 |
+
if chat_history:
|
162 |
+
return
|
163 |
+
return "", chat_history
|
164 |
|
165 |
# Si chat_history está vacío, inicialízalo con el mensaje del usuario actual
|
166 |
if not chat_history:
|