multimodalart HF staff commited on
Commit
5e1ee6f
1 Parent(s): c303ab1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -21,7 +21,7 @@ from huggingface_hub import hf_hub_download
21
  import gradio as gr
22
  import uuid
23
 
24
- #from simple_video_sample import sample
25
 
26
  num_frames = 25
27
  num_steps = 30
@@ -45,8 +45,7 @@ def run_sampling(
45
  print(output_folder)
46
  print(version)
47
  print(input_path)
48
- os.system(f"python simple_video_sample.py --input_path {input_path} --version svd_xt --output_folder {output_folder} --decoding_t 7")
49
- #sample(input_path, version=version, output_folder=output_folder, decoding_t=decoding_t)
50
  return f"{output_folder}/000000.mp4"
51
 
52
  def get_unique_embedder_keys_from_conditioner(conditioner):
@@ -147,4 +146,4 @@ Generate 25 frames of video from a single image with SDV-XT. [Join the waitlist]
147
  image.upload(fn=resize_image, inputs=image, outputs=image)
148
  generate_btn.click(fn=run_sampling, inputs=[image], outputs=video, api_name="video")
149
 
150
- demo.launch()
 
21
  import gradio as gr
22
  import uuid
23
 
24
+ from simple_video_sample import sample
25
 
26
  num_frames = 25
27
  num_steps = 30
 
45
  print(output_folder)
46
  print(version)
47
  print(input_path)
48
+ sample(input_path, version=version, output_folder=output_folder, decoding_t=decoding_t)
 
49
  return f"{output_folder}/000000.mp4"
50
 
51
  def get_unique_embedder_keys_from_conditioner(conditioner):
 
146
  image.upload(fn=resize_image, inputs=image, outputs=image)
147
  generate_btn.click(fn=run_sampling, inputs=[image], outputs=video, api_name="video")
148
 
149
+ demo.launch()