multimodalart HF Staff commited on
Commit
1576fbd
·
verified ·
1 Parent(s): 4f5e7b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -125,8 +125,10 @@ def check_duration(
125
  use_distill,
126
  use_refine,
127
  ):
128
- if use_refine:
129
  return 240
 
 
130
  else:
131
  return 900
132
 
 
125
  use_distill,
126
  use_refine,
127
  ):
128
+ if use_refine and resolution=="480p":
129
  return 240
130
+ elif resolution=="720p":
131
+ return 360
132
  else:
133
  return 900
134