aliabid94 HF staff commited on
Commit
2e97a84
1 Parent(s): 8b2543c

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +6 -10
app_dialogue.py CHANGED
@@ -312,6 +312,7 @@ textbox = gr.Textbox(
312
  visible=True,
313
  container=False,
314
  label="Text input",
 
315
  )
316
  with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
317
  gr.HTML("""<h1 align="center">🐶 IDEFICS Playground - EMBARGO UNTIL AUGUST 22ND</h1>""") # TODO remove embargo
@@ -381,16 +382,11 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
381
 
382
  with gr.Group():
383
  with gr.Row():
384
- with gr.Column(scale=0.6):
385
- textbox.render()
386
- with gr.Column(scale=0.1, min_width=80):
387
- submit_btn = gr.Button(value="▶️ Submit", visible=True)
388
- with gr.Column(scale=0.1, min_width=0):
389
- clear_btn = gr.ClearButton([textbox, imagebox, chatbot], value="🧹 Clear")
390
- with gr.Column(scale=0.1, min_width=0):
391
- regenerate_btn = gr.Button(value="🔄 Regenerate", visible=True)
392
- with gr.Column(scale=0.1, min_width=0):
393
- upload_btn = gr.UploadButton("📁 Upload image", file_types=["image"])
394
  # with gr.Group():
395
  # with gr.Row():
396
  # with gr.Column(scale=1, min_width=50):
 
312
  visible=True,
313
  container=False,
314
  label="Text input",
315
+ scale=6
316
  )
317
  with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
318
  gr.HTML("""<h1 align="center">🐶 IDEFICS Playground - EMBARGO UNTIL AUGUST 22ND</h1>""") # TODO remove embargo
 
382
 
383
  with gr.Group():
384
  with gr.Row():
385
+ textbox.render()
386
+ submit_btn = gr.Button(value="▶️ Submit", visible=True)
387
+ clear_btn = gr.ClearButton([textbox, imagebox, chatbot], value="🧹 Clear")
388
+ regenerate_btn = gr.Button(value="🔄 Regenerate", visible=True)
389
+ upload_btn = gr.UploadButton("📁 Upload image", file_types=["image"])
 
 
 
 
 
390
  # with gr.Group():
391
  # with gr.Row():
392
  # with gr.Column(scale=1, min_width=50):