Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -107,6 +107,9 @@ def create_instruct_demo():
|
|
107 |
fn=instruct_generate,
|
108 |
cache_examples=os.getenv('SYSTEM') == 'spaces'
|
109 |
)
|
|
|
|
|
|
|
110 |
run_botton.click(fn=instruct_generate, inputs=inputs, outputs=outputs)
|
111 |
return instruct_demo
|
112 |
|
|
|
107 |
fn=instruct_generate,
|
108 |
cache_examples=os.getenv('SYSTEM') == 'spaces'
|
109 |
)
|
110 |
+
for example_one in examples:
|
111 |
+
scene_name = os.path.basename(example_one[0]).split(".")[0]
|
112 |
+
example_one[2] = example_dict[scene_name]["input"]
|
113 |
run_botton.click(fn=instruct_generate, inputs=inputs, outputs=outputs)
|
114 |
return instruct_demo
|
115 |
|