ironjr commited on
Commit
ad46e72
1 Parent(s): fc0f9d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 12
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);