weathon commited on
Commit
f88e432
·
1 Parent(s): 6d35d97
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -30,6 +30,7 @@ pipe = VSFStableDiffusion3Pipeline.from_pretrained(
30
  import os
31
  @spaces.GPU
32
  def generate_video(positive_prompt, negative_prompt, guidance_scale, bias, step, seed, progress=gr.Progress(track_tqdm=False)):
 
33
  lambda total: progress.tqdm(range(total))
34
  pipe = pipe.to("cuda")
35
  print(f"Generating image with params: {positive_prompt}, {negative_prompt}, {guidance_scale}, {bias}, {step}")
 
30
  import os
31
  @spaces.GPU
32
  def generate_video(positive_prompt, negative_prompt, guidance_scale, bias, step, seed, progress=gr.Progress(track_tqdm=False)):
33
+ global pipe
34
  lambda total: progress.tqdm(range(total))
35
  pipe = pipe.to("cuda")
36
  print(f"Generating image with params: {positive_prompt}, {negative_prompt}, {guidance_scale}, {bias}, {step}")