Update app.py
Browse files
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 |
-
|
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="
|
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()
|