Daemontatox commited on
Commit
3a77c9c
·
verified ·
1 Parent(s): b585400

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -202,12 +202,12 @@ def main():
202
  elem_classes=["chat-area"],
203
  )
204
 
205
- message = gr.TextArea(
 
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():