rahul7star commited on
Commit
4c4e8ec
·
verified ·
1 Parent(s): d97f4eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -33,15 +33,8 @@ torch._dynamo.config.recompile_limit = 1000
33
  torch._dynamo.config.capture_dynamic_output_shape_ops = True
34
 
35
  # Duration function
36
- def get_duration(prompt,seed,steps, duration_seconds,progress):
37
-
38
- if duration_seconds <= 2.5
39
- return steps * 18
40
- else:
41
- return steps * 25
42
 
43
-
44
- @spaces.GPU(duration=get_duration)
45
  def generate_video(prompt, seed, steps, duration_seconds,progress=gr.Progress(track_tqdm=True)):
46
  generator = torch.manual_seed(seed) if seed else None
47
  fps = 8
 
33
  torch._dynamo.config.capture_dynamic_output_shape_ops = True
34
 
35
  # Duration function
 
 
 
 
 
 
36
 
37
+ @spaces.GPU(duration=60)
 
38
  def generate_video(prompt, seed, steps, duration_seconds,progress=gr.Progress(track_tqdm=True)):
39
  generator = torch.manual_seed(seed) if seed else None
40
  fps = 8