Gary3410 commited on
Commit
d229a8a
·
1 Parent(s): 5e29413

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -64,9 +64,9 @@ def create_instruct_demo():
64
  with gr.Column():
65
  scene_img = gr.Image(label='Scene', type='filepath')
66
  object_list = gr.Textbox(
67
- lines=2, label="Input")
68
- instruction = gr.Textbox(
69
  lines=2, label="Instruction")
 
 
70
  max_len = gr.Slider(minimum=1, maximum=512,
71
  value=128, label="Max length")
72
  with gr.Accordion(label='Advanced options', open=False):
@@ -78,7 +78,7 @@ def create_instruct_demo():
78
  run_botton = gr.Button("Run")
79
 
80
  with gr.Column():
81
- outputs = gr.Textbox(lines=10, label="Output")
82
 
83
  inputs = [scene_img, object_list, instruction, max_len, top_k, temp]
84
 
 
64
  with gr.Column():
65
  scene_img = gr.Image(label='Scene', type='filepath')
66
  object_list = gr.Textbox(
 
 
67
  lines=2, label="Instruction")
68
+ instruction = gr.Textbox(
69
+ lines=5, label="Input")
70
  max_len = gr.Slider(minimum=1, maximum=512,
71
  value=128, label="Max length")
72
  with gr.Accordion(label='Advanced options', open=False):
 
78
  run_botton = gr.Button("Run")
79
 
80
  with gr.Column():
81
+ outputs = gr.Textbox(lines=20, label="Output")
82
 
83
  inputs = [scene_img, object_list, instruction, max_len, top_k, temp]
84