chansung commited on
Commit
1c28431
·
1 Parent(s): b6e89e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -34,6 +34,12 @@ STYLE = """
34
  #chatbot > .wrap {
35
  max-height: 780px;
36
  }
 
 
 
 
 
 
37
  #left-pane {
38
  background-color: #f9fafb;
39
  border-radius: 15px;
@@ -52,6 +58,11 @@ STYLE = """
52
  background: transparent;
53
  border: 0.8px !important;
54
  }
 
 
 
 
 
55
  """
56
 
57
  get_local_storage = """
@@ -132,7 +143,7 @@ with gr.Blocks(css=STYLE, elem_id='container-col') as block:
132
  fourth = gr.Button("4th", elem_classes=["custom-btn"])
133
  fifth = gr.Button("5th", elem_classes=["custom-btn"])
134
 
135
- with gr.Column(scale=8):
136
  chatbot = gr.Chatbot(elem_id='chatbot')
137
  instruction_txtbox = gr.Textbox(
138
  placeholder="Ask anything", label="",
@@ -163,4 +174,4 @@ with gr.Blocks(css=STYLE, elem_id='container-col') as block:
163
  _js=get_local_storage,
164
  )
165
 
166
- block.launch(debug=True)
 
34
  #chatbot > .wrap {
35
  max-height: 780px;
36
  }
37
+ #chatbot + div {
38
+ border-radius: 35px;
39
+ width: 80% !important;
40
+ margin: auto !important;
41
+ }
42
+
43
  #left-pane {
44
  background-color: #f9fafb;
45
  border-radius: 15px;
 
58
  background: transparent;
59
  border: 0.8px !important;
60
  }
61
+
62
+ #right-pane {
63
+ margin-left: 20px;
64
+ margin-right: 70px;
65
+ }
66
  """
67
 
68
  get_local_storage = """
 
143
  fourth = gr.Button("4th", elem_classes=["custom-btn"])
144
  fifth = gr.Button("5th", elem_classes=["custom-btn"])
145
 
146
+ with gr.Column(scale=8, elem_id="right-pane"):
147
  chatbot = gr.Chatbot(elem_id='chatbot')
148
  instruction_txtbox = gr.Textbox(
149
  placeholder="Ask anything", label="",
 
174
  _js=get_local_storage,
175
  )
176
 
177
+ block.queue().launch(debug=True)