alexnasa commited on
Commit
b358869
·
verified ·
1 Parent(s): c88bb62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -180,11 +180,9 @@ def preprocess_image(input_image: Image.Image) -> Image.Image:
180
  duration = 60
181
 
182
  if ori_width > 384 or ori_height > 384:
183
- duration = 75
184
- elif ori_width > 512 or ori_height > 512:
185
- duration = 240
186
  elif ori_width > 1024 or ori_height > 1024:
187
- duration = 480
188
 
189
  return duration
190
 
 
180
  duration = 60
181
 
182
  if ori_width > 384 or ori_height > 384:
183
+ duration = 120
 
 
184
  elif ori_width > 1024 or ori_height > 1024:
185
+ duration = 240
186
 
187
  return duration
188