Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,6 @@ def create_instruct_demo():
|
|
65 |
scene_img = gr.Image(label='Scene', type='filepath')
|
66 |
object_list = gr.Textbox(
|
67 |
lines=2, label="Input")
|
68 |
-
|
69 |
instruction = gr.Textbox(
|
70 |
lines=2, label="Instruction")
|
71 |
max_len = gr.Slider(minimum=1, maximum=512,
|
@@ -81,7 +80,7 @@ def create_instruct_demo():
|
|
81 |
with gr.Column():
|
82 |
outputs = gr.Textbox(lines=10, label="Output")
|
83 |
|
84 |
-
inputs = [scene_img,
|
85 |
|
86 |
# 接下来设定具体的example格式
|
87 |
examples_img_list = glob.glob("caption_demo/*.png")
|
|
|
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,
|
|
|
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 |
|
85 |
# 接下来设定具体的example格式
|
86 |
examples_img_list = glob.glob("caption_demo/*.png")
|