vimalprasad37 commited on
Commit
29eb48f
·
1 Parent(s): be50255

Feature update

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -703,7 +703,10 @@ def get_inference_duration(
703
  total_time = 20 + gen_time
704
  if safe_mode:
705
  total_time = total_time * 1.30
706
-
 
 
 
707
  # ZeroGPU refuses a booking above its own ceiling outright, and `size="xlarge"` doubles what is
708
  # asked for, so a runaway estimate fails before it starts.
709
  return min(total_time, 600)
 
703
  total_time = 20 + gen_time
704
  if safe_mode:
705
  total_time = total_time * 1.30
706
+ print("time_before------", total_time)
707
+ if duration_seconds >= 10:
708
+ total_time = total_time - 54
709
+ print("total_time-------", total_time)
710
  # ZeroGPU refuses a booking above its own ceiling outright, and `size="xlarge"` doubles what is
711
  # asked for, so a runaway estimate fails before it starts.
712
  return min(total_time, 600)