Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ def generate_response(model_name, message, chat_history):
|
|
17 |
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 |
theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Martel Sans")])
|
22 |
) as demo:
|
23 |
gr.Markdown("# GPT4All Chatbot")
|
@@ -41,7 +42,7 @@ with gr.Blocks(
|
|
41 |
with gr.Row():
|
42 |
message = gr.Textbox(label="Message", scale=10)
|
43 |
message.submit(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
44 |
-
submit_button = gr.Button("Submit", scale=1)
|
45 |
submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
46 |
|
47 |
clear = gr.ClearButton([message, chatbot])
|
|
|
17 |
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 { color: green; }",
|
22 |
theme=gr.themes.Soft(font=[gr.themes.GoogleFont("Martel Sans")])
|
23 |
) as demo:
|
24 |
gr.Markdown("# GPT4All Chatbot")
|
|
|
42 |
with gr.Row():
|
43 |
message = gr.Textbox(label="Message", scale=10)
|
44 |
message.submit(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
45 |
+
submit_button = gr.Button("Submit", scale=1, elem_id="submit")
|
46 |
submit_button.click(generate_response, inputs=[model_dropdown, message, chatbot], outputs=[message, chatbot])
|
47 |
|
48 |
clear = gr.ClearButton([message, chatbot])
|