Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def generate_response(model_name, message, chat_history):
|
|
18 |
# Create Gradio UI
|
19 |
with gr.Blocks(
|
20 |
css=".contain { display: flex !important; flex-direction: column !important; }"
|
21 |
-
"#chatbot { flex-grow: 1 !important; overflow
|
22 |
"#col { height: calc(100vh - 112px - 16px) !important; }"
|
23 |
"#submit:hover { background-color: green !important; }"
|
24 |
"#clear { background-color: darkred !important; }",
|
@@ -42,7 +42,7 @@ with gr.Blocks(
|
|
42 |
gr.Textbox(value=f"{space_hardware()}\n2 vCPU • 16 GB RAM \nFree tier", label="Space Hardware use")
|
43 |
|
44 |
|
45 |
-
with gr.Column(scale=4, elem_id='col'
|
46 |
chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
|
47 |
|
48 |
with gr.Row():
|
|
|
18 |
# Create Gradio UI
|
19 |
with gr.Blocks(
|
20 |
css=".contain { display: flex !important; flex-direction: column !important; }"
|
21 |
+
"#chatbot { flex-grow: 1 !important; overflow: auto !important; height: 80vh !important; }"
|
22 |
"#col { height: calc(100vh - 112px - 16px) !important; }"
|
23 |
"#submit:hover { background-color: green !important; }"
|
24 |
"#clear { background-color: darkred !important; }",
|
|
|
42 |
gr.Textbox(value=f"{space_hardware()}\n2 vCPU • 16 GB RAM \nFree tier", label="Space Hardware use")
|
43 |
|
44 |
|
45 |
+
with gr.Column(scale=4, elem_id='col'):
|
46 |
chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
|
47 |
|
48 |
with gr.Row():
|