yxmauw commited on
Commit
5d2720d
·
verified ·
1 Parent(s): d66ad64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,8 +18,8 @@ with gr.Blocks(
18
  css=".contain { display: flex !important; flex-direction: column !important; }"
19
  "#chatbot { flex-grow: 1 !important; overflow: auto !important; }"
20
  "#col { height: calc(100vh - 112px - 16px) !important; }"
21
- "#submit:hover { background-color: green !important; }",
22
- # "#clear:hover { background-color: red !important; }",
23
  theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Martel Sans")])
24
  ) as demo:
25
  gr.Markdown("# GPT4All Chatbot")
@@ -46,7 +46,7 @@ with gr.Blocks(
46
  submit_button = gr.Button("Submit", scale=1, elem_id="submit")
47
  submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
48
 
49
- clear = gr.ClearButton([message, chatbot], elem_id="clear")
50
 
51
  # Launch the Gradio app
52
  demo.launch()
 
18
  css=".contain { display: flex !important; flex-direction: column !important; }"
19
  "#chatbot { flex-grow: 1 !important; overflow: auto !important; }"
20
  "#col { height: calc(100vh - 112px - 16px) !important; }"
21
+ "#submit:hover { background-color: green !important; }"
22
+ "#clear_button:hover { background-color: red !important; }",
23
  theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Martel Sans")])
24
  ) as demo:
25
  gr.Markdown("# GPT4All Chatbot")
 
46
  submit_button = gr.Button("Submit", scale=1, elem_id="submit")
47
  submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
48
 
49
+ clear = gr.ClearButton([message, chatbot], elem_id="clear_button")
50
 
51
  # Launch the Gradio app
52
  demo.launch()