alexnasa commited on
Commit
58eaa61
·
verified ·
1 Parent(s): e4f0236

Update app.py

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