Spaces:
Running
Running
Refactor question input styling to use style method and remove Enter key submission
Browse files
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 |
-
|
| 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 |
|