Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ opt.colors = [
|
|
147 |
# '#FECAC0',
|
148 |
]
|
149 |
opt.excluded_keys = ['inpainting_mode', 'is_running', 'active_palettes', 'current_palette', 'model']
|
150 |
-
opt.prep_time =
|
151 |
|
152 |
|
153 |
### Event handlers
|
@@ -1063,7 +1063,7 @@ async () => {{
|
|
1063 |
|
1064 |
function timer(totalTime, deadline) {{
|
1065 |
var time = totalTime * 1000;
|
1066 |
-
var dayDuration = time / deadline;
|
1067 |
var actualDay = deadline + {opt.prep_time};
|
1068 |
|
1069 |
var timer = setInterval(countTime, dayDuration);
|
|
|
147 |
# '#FECAC0',
|
148 |
]
|
149 |
opt.excluded_keys = ['inpainting_mode', 'is_running', 'active_palettes', 'current_palette', 'model']
|
150 |
+
opt.prep_time = 20
|
151 |
|
152 |
|
153 |
### Event handlers
|
|
|
1063 |
|
1064 |
function timer(totalTime, deadline) {{
|
1065 |
var time = totalTime * 1000;
|
1066 |
+
var dayDuration = time / (deadline + {opt.prep_time});
|
1067 |
var actualDay = deadline + {opt.prep_time};
|
1068 |
|
1069 |
var timer = setInterval(countTime, dayDuration);
|