Spaces:
Sleeping
Sleeping
Removed textbox resize
Browse files
app.py
CHANGED
|
@@ -31,20 +31,17 @@ css = """
|
|
| 31 |
.share-button.svelte-1ylopk1 {
|
| 32 |
display: none !important;
|
| 33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
"""
|
| 35 |
|
| 36 |
with gr.Blocks(theme = theme, css=css) as demo:
|
| 37 |
chatbot = gr.Chatbot(show_label = False)
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
gr.on(
|
| 43 |
-
triggers=[msg.submit, submitButton.click],
|
| 44 |
-
fn = response,
|
| 45 |
-
inputs=[msg, chatbot],
|
| 46 |
-
outputs=[msg, chatbot]
|
| 47 |
-
)
|
| 48 |
|
| 49 |
|
| 50 |
|
|
|
|
| 31 |
.share-button.svelte-1ylopk1 {
|
| 32 |
display: none !important;
|
| 33 |
}
|
| 34 |
+
|
| 35 |
+
textarea.svelte-1f354aw {
|
| 36 |
+
resize: none !important;
|
| 37 |
+
}
|
| 38 |
"""
|
| 39 |
|
| 40 |
with gr.Blocks(theme = theme, css=css) as demo:
|
| 41 |
chatbot = gr.Chatbot(show_label = False)
|
| 42 |
+
msg = gr.Textbox(show_label = False)
|
| 43 |
+
|
| 44 |
+
msg.submit(response, [msg, chatbot], [msg, chatbot])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
|
| 47 |
|