xizaoqu commited on
Commit
cde219e
·
1 Parent(s): 802bec3
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -239,11 +239,13 @@ def run(cfg: DictConfig):
239
  reset()
240
  return SELECTED_IMAGE
241
 
 
242
  _ = run_interactive(memory_frames[0],
243
  actions[0],
244
  poses[0],
245
  memory_curr_frame,
246
  device)
 
247
 
248
  css = """
249
  h1 {
@@ -366,9 +368,7 @@ def run(cfg: DictConfig):
366
 
367
  slider.change(fn=set_denoising_steps, inputs=[slider, sampling_timesteps_state], outputs=sampling_timesteps_state)
368
 
369
- # 允许公开访问
370
- demo.launch(share=True)
371
- demo.launch(server_name="0.0.0.0", server_port=30066)
372
 
373
  if __name__ == "__main__":
374
  run() # pylint: disable=no-value-for-parameter
 
239
  reset()
240
  return SELECTED_IMAGE
241
 
242
+ print("run initialization")
243
  _ = run_interactive(memory_frames[0],
244
  actions[0],
245
  poses[0],
246
  memory_curr_frame,
247
  device)
248
+ print("done initialization")
249
 
250
  css = """
251
  h1 {
 
368
 
369
  slider.change(fn=set_denoising_steps, inputs=[slider, sampling_timesteps_state], outputs=sampling_timesteps_state)
370
 
371
+ demo.launch()
 
 
372
 
373
  if __name__ == "__main__":
374
  run() # pylint: disable=no-value-for-parameter