DragonFifth commited on
Commit
533ee5a
·
verified ·
1 Parent(s): 6822ae0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ except Exception as exc:
80
  log("startup: pipeline on cuda (ZeroGPU-emulated until Generate)")
81
 
82
 
83
- def get_duration(prompt, width, height, steps):
84
  tokens = (int(width) // 16) * (int(height) // 16)
85
  # TurboTime: one transformer pass per step. ~0.4-1.0s/step at 1024 on xlarge.
86
  seconds = 25 + int(steps) * max(0.35, 0.00035 * tokens)
 
80
  log("startup: pipeline on cuda (ZeroGPU-emulated until Generate)")
81
 
82
 
83
+ def get_duration(prompt, width, height, steps, progress=None):
84
  tokens = (int(width) // 16) * (int(height) // 16)
85
  # TurboTime: one transformer pass per step. ~0.4-1.0s/step at 1024 on xlarge.
86
  seconds = 25 + int(steps) * max(0.35, 0.00035 * tokens)