UzairIBU/VAEBAC
0
1 2<!DOCTYPE html>3<html lang="en">4<head>5 <meta charset="UTF-8">6 <title>Processing...</title>7 <style>8 body {9 font-family: Arial, sans-serif;10 background-color: #f7f7f7;11 text-align: center;12 padding-top: 100px;13 }14 </style>15</head>16<body>17 <h1>🧬 VAEBAC is processing your request...</h1>18 <p>This may take a few moments depending on the sequence size.</p>19 <div id="status"></div>20 21 <script>22 function getQueryParam(param) {23 const urlParams = new URLSearchParams(window.location.search);24 return urlParams.get(param);25 }26 27 async function checkJobStatus() {28 const jobId = getQueryParam("job_id");29 30 try {31 const response = await fetch(`http://localhost:6969/summary/${jobId}`);32 if (response.status === 202) {33 window.location.href = `download.html?job_id=${encodeURIComponent(jobId)}`;34 }35 } catch (error) {36 console.error("Job status check failed", error);37 }38 }39 40 // Check status every 2 seconds41 setInterval(checkJobStatus, 2000);42 </script>43</body>44</html>45 