fffiloni commited on
Commit
63dba30
1 Parent(s): d6761cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,8 +10,8 @@ import threading
10
  import torch
11
  from subprocess import getoutput
12
 
13
- # is_shared_ui = False
14
- is_shared_ui = True if "fffiloni/MimicMotion" in os.environ['SPACE_ID'] else False
15
  available_property = False if is_shared_ui else True
16
 
17
  is_gpu_associated = torch.cuda.is_available()
@@ -289,7 +289,7 @@ with gr.Blocks(css=css) as demo:
289
  ["./examples/demo1.jpg", "./examples/preview_1.mp4"]
290
  ],
291
  fn = load_examples,
292
- inputs = [ref_image_in, ref_video_in, num_inference_steps, guidance_scale, output_frames_per_second, seed, checkpoint_version],
293
  outputs = [output_video],
294
  run_on_click = True,
295
  cache_examples = False
@@ -297,7 +297,7 @@ with gr.Blocks(css=css) as demo:
297
  output_video.render()
298
  submit_btn.click(
299
  fn = infer,
300
- inputs = [ref_image_in, ref_video_in],
301
  outputs = [output_video]
302
  )
303
 
 
10
  import torch
11
  from subprocess import getoutput
12
 
13
+ is_shared_ui = False
14
+ # is_shared_ui = True if "fffiloni/MimicMotion" in os.environ['SPACE_ID'] else False
15
  available_property = False if is_shared_ui else True
16
 
17
  is_gpu_associated = torch.cuda.is_available()
 
289
  ["./examples/demo1.jpg", "./examples/preview_1.mp4"]
290
  ],
291
  fn = load_examples,
292
+ inputs = [ref_image_in, ref_video_in],
293
  outputs = [output_video],
294
  run_on_click = True,
295
  cache_examples = False
 
297
  output_video.render()
298
  submit_btn.click(
299
  fn = infer,
300
+ inputs = [ref_image_in, ref_video_in, num_inference_steps, guidance_scale, output_frames_per_second, seed, checkpoint_version],
301
  outputs = [output_video]
302
  )
303