ffreemt commited on
Commit
a904f8b
1 Parent(s): 407dc77

Change layout

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -92,12 +92,21 @@ with gr.Blocks(theme=theme) as block:
92
  with gr.Row():
93
  with gr.Column(scale=12):
94
  msg = gr.Textbox()
 
95
  with gr.Column(scale=1, min_width=16):
96
  btn = gr.Button("Send")
97
  with gr.Column(scale=1, min_width=8):
98
  clear = gr.ClearButton([msg, chatbot])
99
  with gr.Column(scale=1, min_width=25):
100
  dt = gr.Textbox(label="Current time")
 
 
 
 
 
 
 
 
101
  # do not clear prompt
102
  msg.submit(respond, [msg, chatbot], [msg, chatbot])
103
 
 
92
  with gr.Row():
93
  with gr.Column(scale=12):
94
  msg = gr.Textbox()
95
+ _ = """
96
  with gr.Column(scale=1, min_width=16):
97
  btn = gr.Button("Send")
98
  with gr.Column(scale=1, min_width=8):
99
  clear = gr.ClearButton([msg, chatbot])
100
  with gr.Column(scale=1, min_width=25):
101
  dt = gr.Textbox(label="Current time")
102
+ # """
103
+ with gr.Column(scale=1, min_width=48):
104
+ with gr.Column(scale=1, min_width=16):
105
+ btn = gr.Button("Send")
106
+ with gr.Column(scale=1, min_width=16):
107
+ clear = gr.ClearButton([msg, chatbot])
108
+ with gr.Row():
109
+ dt = gr.Textbox(label="Current time")
110
  # do not clear prompt
111
  msg.submit(respond, [msg, chatbot], [msg, chatbot])
112