jleezhang commited on
Commit
02ab7a5
·
verified ·
1 Parent(s): a521a96

Removed textbox resize

Browse files
Files changed (1) hide show
  1. app.py +7 -10
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
- with gr.Row():
39
- msg = gr.Textbox(show_label = False, scale = 3)
40
- submitButton = gr.Button("Submit", scale = 1)
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