dwb2023 commited on
Commit
5c76b5d
·
verified ·
1 Parent(s): 6620629

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -346,20 +346,21 @@ with gr.Blocks(css="style.css") as demo:
346
  outputs=seg_outputs,
347
  )
348
  with gr.Tab("Text Generation"):
349
- with gr.Column():
350
- image = gr.Image(type="pil")
351
- text_input = gr.Text(label="Input Text")
352
-
353
- text_output = gr.Text(label="Text Output")
354
- chat_btn = gr.Button()
355
- tokens = gr.Slider(
356
- label="Max New Tokens",
357
- info="Set to larger for longer generation.",
358
- minimum=10,
359
- maximum=100,
360
- value=50,
361
- step=10,
362
- )
 
363
 
364
  chat_inputs = [
365
  image,
 
346
  outputs=seg_outputs,
347
  )
348
  with gr.Tab("Text Generation"):
349
+ with gr.Row():
350
+ with gr.Column():
351
+ image = gr.Image(type="pil")
352
+ with gr.Column()
353
+ text_input = gr.Text(label="Input Text")
354
+ text_output = gr.Text(label="Text Output")
355
+ tokens = gr.Slider(
356
+ label="Max New Tokens",
357
+ info="Set to larger for longer generation.",
358
+ minimum=10,
359
+ maximum=100,
360
+ value=50,
361
+ step=10,
362
+ )
363
+ chat_btn = gr.Button()
364
 
365
  chat_inputs = [
366
  image,