Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
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)
|