ironjr commited on
Commit
66dbe1c
1 Parent(s): 20e80d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1121,6 +1121,8 @@ async () => {{
1121
  deadlineTextBegin();
1122
  }} else if (actualDay > 0) {{
1123
  deadlineText(actualDay);
 
 
1124
  }} else {{
1125
  clearInterval(timer);
1126
  deadlineTextFinished();
@@ -1149,8 +1151,6 @@ async () => {{
1149
  state = true;
1150
 
1151
  // Run the main animation just once.
1152
- gradioEl.querySelector('#progress-time-fill').style['animation-duration'] = animationTime + 's';
1153
- gradioEl.querySelector('#death-group').style['animation-duration'] = animationTime + 's';
1154
  timerFunc(animationTime, days);
1155
  deadlineAnimation();
1156
  deadlineText({opt.run_time});
 
1121
  deadlineTextBegin();
1122
  }} else if (actualDay > 0) {{
1123
  deadlineText(actualDay);
1124
+ gradioEl.querySelector('#progress-time-fill').style['animation-duration'] = animationTime + 's';
1125
+ gradioEl.querySelector('#death-group').style['animation-duration'] = animationTime + 's';
1126
  }} else {{
1127
  clearInterval(timer);
1128
  deadlineTextFinished();
 
1151
  state = true;
1152
 
1153
  // Run the main animation just once.
 
 
1154
  timerFunc(animationTime, days);
1155
  deadlineAnimation();
1156
  deadlineText({opt.run_time});