LiamKhoaLe commited on
Commit
2e43ca6
·
1 Parent(s): 1974c83

Lower health check rate to 10s

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -370,7 +370,7 @@ HTML_CONTENT = """
370
  let checkResponse = await fetch(`/check_video/${user_id}`);
371
  let checkResult = await checkResponse.json();
372
  if (checkResult.ready) break;
373
- await new Promise(resolve => setTimeout(resolve, 3000)); // Wait 3s before checking again
374
  }
375
  loader.classList.add("hidden");
376
  let videoUrl = `/video/${user_id}?t=${new Date().getTime()}`;
 
370
  let checkResponse = await fetch(`/check_video/${user_id}`);
371
  let checkResult = await checkResponse.json();
372
  if (checkResult.ready) break;
373
+ await new Promise(resolve => setTimeout(resolve, 10000)); // Wait 10s before checking again
374
  }
375
  loader.classList.add("hidden");
376
  let videoUrl = `/video/${user_id}?t=${new Date().getTime()}`;