Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -202,12 +202,12 @@ def main():
|
|
202 |
elem_classes=["chat-area"],
|
203 |
)
|
204 |
|
205 |
-
|
|
|
206 |
placeholder=PLACEHOLDER,
|
207 |
label="Your message",
|
208 |
lines=3,
|
209 |
-
# Enable Enter key submission
|
210 |
-
submit=True,
|
211 |
)
|
212 |
|
213 |
with gr.Row():
|
|
|
202 |
elem_classes=["chat-area"],
|
203 |
)
|
204 |
|
205 |
+
# Use Textbox instead of TextArea for Enter key submission
|
206 |
+
message = gr.Textbox(
|
207 |
placeholder=PLACEHOLDER,
|
208 |
label="Your message",
|
209 |
lines=3,
|
210 |
+
submit=True, # Enable Enter key submission
|
|
|
211 |
)
|
212 |
|
213 |
with gr.Row():
|