Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,16 +24,23 @@ def respond(user_message, history):
|
|
24 |
return bot_response
|
25 |
|
26 |
with gr.Blocks(css="""
|
27 |
-
|
28 |
height: 100% !important;
|
29 |
margin: 0 !important;
|
30 |
padding: 0 !important;
|
31 |
}
|
32 |
-
.
|
33 |
height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
""") as demo:
|
36 |
-
with gr.
|
37 |
-
gr.ChatInterface(fn=respond, chatbot=gr.Chatbot(),
|
38 |
|
39 |
demo.launch()
|
|
|
24 |
return bot_response
|
25 |
|
26 |
with gr.Blocks(css="""
|
27 |
+
html, body, #root, .gradio-container {
|
28 |
height: 100% !important;
|
29 |
margin: 0 !important;
|
30 |
padding: 0 !important;
|
31 |
}
|
32 |
+
.chat-wrapper {
|
33 |
height: 100%;
|
34 |
+
display: flex;
|
35 |
+
flex-direction: column;
|
36 |
+
}
|
37 |
+
.chat-interface {
|
38 |
+
flex: 1;
|
39 |
+
display: flex;
|
40 |
+
flex-direction: column;
|
41 |
}
|
42 |
""") as demo:
|
43 |
+
with gr.Column(elem_classes=["chat-wrapper"]):
|
44 |
+
gr.ChatInterface(fn=respond, chatbot=gr.Chatbot(), elem_classes=["chat-interface"])
|
45 |
|
46 |
demo.launch()
|