alexnasa commited on
Commit
b7bf602
·
verified ·
1 Parent(s): 3476bac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -115,17 +115,17 @@ def get_duration(
115
  progress,
116
  ):
117
 
118
- duration_seconds = 60
119
 
120
  if num_parts > 10:
121
- duration_seconds = 90
122
  elif num_parts > 5:
123
- duration_seconds = 75
124
 
125
  return int(duration_seconds)
126
 
127
 
128
- @spaces.GPU(duration=135)
129
  def gen_model_n_video(image_path: str,
130
  num_parts: int,
131
  progress=gr.Progress(track_tqdm=True),):
 
115
  progress,
116
  ):
117
 
118
+ duration_seconds = 75
119
 
120
  if num_parts > 10:
121
+ duration_seconds = 120
122
  elif num_parts > 5:
123
+ duration_seconds = 90
124
 
125
  return int(duration_seconds)
126
 
127
 
128
+ @spaces.GPU(duration=140)
129
  def gen_model_n_video(image_path: str,
130
  num_parts: int,
131
  progress=gr.Progress(track_tqdm=True),):