Hieucyber2208 commited on
Commit
e84a8c8
·
verified ·
1 Parent(s): c00af9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -24,16 +24,23 @@ def respond(user_message, history):
24
  return bot_response
25
 
26
  with gr.Blocks(css="""
27
- body, html, #root, .gradio-container {
28
  height: 100% !important;
29
  margin: 0 !important;
30
  padding: 0 !important;
31
  }
32
- .full-height {
33
  height: 100%;
 
 
 
 
 
 
 
34
  }
35
  """) as demo:
36
- with gr.Row(elem_classes=["full-height"]):
37
- gr.ChatInterface(fn=respond, chatbot=gr.Chatbot(), fill_height=True)
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()