ACloudCenter commited on
Commit
070a7dd
·
1 Parent(s): 3f807cb

Fix textbox height to 1 line

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -181,14 +181,15 @@ with gr.Blocks(theme=theme) as demo:
181
  chatbot = gr.Chatbot(
182
  label="Response",
183
  type="messages",
184
- height=400,
185
- show_copy_button=True
 
186
  )
187
  with gr.Row():
188
  msg = gr.Textbox(
189
  placeholder="Ask a question about the transcript...",
190
  label="Your Question",
191
- scale=4
192
  )
193
  submit_chat_btn = gr.Button("Send", variant="primary", scale=1)
194
  clear_chat_btn = gr.Button("Clear Chat", size="sm")
 
181
  chatbot = gr.Chatbot(
182
  label="Response",
183
  type="messages",
184
+ height=300,
185
+ show_copy_button=True,
186
+ autoscroll=True
187
  )
188
  with gr.Row():
189
  msg = gr.Textbox(
190
  placeholder="Ask a question about the transcript...",
191
  label="Your Question",
192
+ lines=1
193
  )
194
  submit_chat_btn = gr.Button("Send", variant="primary", scale=1)
195
  clear_chat_btn = gr.Button("Clear Chat", size="sm")