Gary3410 commited on
Commit
337542b
·
1 Parent(s): e3fa057

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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