Rulga commited on
Commit
ecd5a30
·
1 Parent(s): 04edc4e

Refactor question input styling to use style method and remove Enter key submission

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -736,9 +736,8 @@ with gr.Blocks() as demo:
736
  msg = gr.Textbox(
737
  label="Your question",
738
  placeholder="Enter your question...",
739
- scale=4,
740
- submit_on_enter=True # Enable Enter key submission
741
- )
742
  submit_btn = gr.Button("Send", variant="primary")
743
  clear_btn = gr.Button("Clear") # Add clear button
744
 
 
736
  msg = gr.Textbox(
737
  label="Your question",
738
  placeholder="Enter your question...",
739
+ scale=4
740
+ ).style(container=False) # Используем style вместо submit_on_enter
 
741
  submit_btn = gr.Button("Send", variant="primary")
742
  clear_btn = gr.Button("Clear") # Add clear button
743