Spaces:
Running
Running
Commit ·
d72161f
1
Parent(s): 06dd70b
load weights fix
Browse files3272 unmodified lines3273327432753276327732783272 unmodified lines}});</script></body></html>"""3272 unmodified lines327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013272 unmodified lines}});</script>window.addEventListener("load", async () => {try {const res = await fetch(window.location.origin + "/load_weights");const data = await res.json();if (data.found) {console.log("Loaded pretrained weights");if (window.dqnAgent) {window.dqnAgent.load(data.data);}// update UI directlydocument.getElementById("rl-episodes").textContent = data.data.episodes || 60;document.getElementById("rl-epsilon").textContent = data.data.epsilon?.toFixed(3) || "0.050";} else {console.log("No weights found");}} catch (e) {console.error("Load weights error:", e);}});</body></html>"""
app/viz/dashboard.py+23