Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -88,8 +88,8 @@ def create_instruct_demo():
|
|
| 88 |
with gr.Column():
|
| 89 |
outputs = gr.Textbox(lines=20, label="Output")
|
| 90 |
|
| 91 |
-
|
| 92 |
-
inputs = [scene_img, instruction, object_list]
|
| 93 |
|
| 94 |
# 接下来设定具体的example格式
|
| 95 |
examples_img_list = glob.glob("caption_demo/*.png")
|
|
@@ -108,7 +108,7 @@ def create_instruct_demo():
|
|
| 108 |
fn=instruct_generate,
|
| 109 |
cache_examples=os.getenv('SYSTEM') == 'spaces'
|
| 110 |
)
|
| 111 |
-
inputs = inputs + [max_len, temp, top_k]
|
| 112 |
run_botton.click(fn=instruct_generate, inputs=inputs, outputs=outputs)
|
| 113 |
return instruct_demo
|
| 114 |
|
|
|
|
| 88 |
with gr.Column():
|
| 89 |
outputs = gr.Textbox(lines=20, label="Output")
|
| 90 |
|
| 91 |
+
inputs = [scene_img, instruction, object_list, max_len, temp, top_k]
|
| 92 |
+
# inputs = [scene_img, instruction, object_list]
|
| 93 |
|
| 94 |
# 接下来设定具体的example格式
|
| 95 |
examples_img_list = glob.glob("caption_demo/*.png")
|
|
|
|
| 108 |
fn=instruct_generate,
|
| 109 |
cache_examples=os.getenv('SYSTEM') == 'spaces'
|
| 110 |
)
|
| 111 |
+
# inputs = inputs + [max_len, temp, top_k]
|
| 112 |
run_botton.click(fn=instruct_generate, inputs=inputs, outputs=outputs)
|
| 113 |
return instruct_demo
|
| 114 |
|