rwitz commited on
Commit
77c1722
Β·
verified Β·
1 Parent(s): 4609e4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -255,7 +255,7 @@ with gr.Blocks() as demo:
255
 
256
  with gr.Row():
257
  with gr.Column(scale=5):
258
- textbox = gr.Textbox(placeholder="🎀 Enter your prompt (up to 200 characters)", lines=2, max_lines=5)
259
  submit_btn = gr.Button(value="Submit")
260
 
261
  with gr.Row():
@@ -279,14 +279,12 @@ with gr.Blocks() as demo:
279
  gr.Markdown("## πŸ—£οΈ Chat directly with a model!")
280
 
281
  with gr.Row():
282
- with gr.Column(scale=4):
283
- direct_chatbot = gr.Chatbot(label="πŸ’¬ Direct Chat").style(height=500)
284
- with gr.Column(scale=1):
285
- model_dropdown = gr.Dropdown(choices=chatbots, label="πŸ€– Select a model")
286
 
287
  with gr.Row():
288
  with gr.Column(scale=5):
289
- direct_textbox = gr.Textbox(placeholder="πŸ’­ Enter your message", lines=2, max_lines=5)
290
  direct_submit_btn = gr.Button(value="Submit")
291
 
292
  with gr.Row():
 
255
 
256
  with gr.Row():
257
  with gr.Column(scale=5):
258
+ textbox = gr.Textbox(placeholder="🎀 Enter your prompt (up to 200 characters)", lines=2, max_lines=5, submit_key="enter")
259
  submit_btn = gr.Button(value="Submit")
260
 
261
  with gr.Row():
 
279
  gr.Markdown("## πŸ—£οΈ Chat directly with a model!")
280
 
281
  with gr.Row():
282
+ direct_chatbot = gr.Chatbot(label="πŸ’¬ Direct Chat").style(height=500)
283
+ model_dropdown = gr.Dropdown(choices=chatbots, label="πŸ€– Select a model")
 
 
284
 
285
  with gr.Row():
286
  with gr.Column(scale=5):
287
+ direct_textbox = gr.Textbox(placeholder="πŸ’­ Enter your message", lines=2, max_lines=5, submit_key="enter")
288
  direct_submit_btn = gr.Button(value="Submit")
289
 
290
  with gr.Row():