Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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=
|
| 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 |
|