Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files17 unmodified lines1819202122232412 unmodified lines3738394041423 unmodified lines464748495051528 unmodified lines6162636465666768697071727374757677787980818283848517 unmodified lines@app.get("/web", response_class=HTMLResponse)@app.get("/web/", response_class=HTMLResponse)def home():# ... (same HTML as before)return """<!DOCTYPE html><html>12 unmodified linesmin-height: 100vh;margin: 0;text-align: center;}.container {background: rgba(30, 41, 59, 0.7);3 unmodified linesborder: 1px solid rgba(255, 255, 255, 0.1);box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);max-width: 600px;}h1 { font-size: 3rem; margin-bottom: 0.5rem; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; }.badge { background: #334155; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; vertical-align: middle; border: 1px solid #475569; }8 unmodified linestext-decoration: none;transition: all 0.2s;font-weight: 600;}.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #60a5fa; transform: translateY(-2px); }footer { margin-top: 2rem; color: #64748b; font-size: 0.9rem; }</style></head><body><div class="container"><h1>Code Debug Env</h1><p>A production-grade <strong>OpenEnv</strong> for training frontier reasoning agents on code repair tasks. <span class="badge">v1.0.0</span></p><div class="grid"><a href="/health" class="btn">π‘ Server Health</a><a href="/tasks" class="btn">π Task Registry</a><a href="/baseline" class="btn">π€ Run Baseline</a><a href="https://huggingface.co/spaces/luciferai-devil/code-debug-env" class="btn">π Documentation</a></div><footer>Built for Meta & PyTorch Γ Scaler Hackathon</footer></div></body></html>"""17 unmodified lines18192021222312 unmodified lines363738394041423 unmodified lines4647484950515253548 unmodified lines6364656667686970717273747576777879808182838485868788899091929394959697989910010110210317 unmodified lines@app.get("/web", response_class=HTMLResponse)@app.get("/web/", response_class=HTMLResponse)def home():return """<!DOCTYPE html><html>12 unmodified linesmin-height: 100vh;margin: 0;text-align: center;overflow-x: hidden;}.container {background: rgba(30, 41, 59, 0.7);3 unmodified linesborder: 1px solid rgba(255, 255, 255, 0.1);box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);max-width: 600px;animation: fadeIn 0.8s ease-out;}@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }h1 { font-size: 3rem; margin-bottom: 0.5rem; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; }.badge { background: #334155; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; vertical-align: middle; border: 1px solid #475569; }8 unmodified linestext-decoration: none;transition: all 0.2s;font-weight: 600;position: relative;overflow: hidden;}.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #60a5fa; transform: translateY(-2px); }.btn.loading { pointer-events: none; opacity: 0.7; }.loading-text { display: none; }.btn.loading .loading-text { display: inline-block; animation: pulse 1.5s infinite; }.btn.loading span:not(.loading-text) { display: none; }@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }footer { margin-top: 2rem; color: #64748b; font-size: 0.9rem; }</style></head><body><div class="container" id="main-card"><h1>Code Debug Env</h1><p>A production-grade <strong>OpenEnv</strong> for training frontier reasoning agents on code repair tasks. <span class="badge">v1.1.0</span></p><div class="grid"><a href="/health" class="btn">π‘ Server Health</a><a href="/tasks" class="btn">π Task Registry</a><a id="baseline-btn" href="/baseline" class="btn"><span>π€ Run Baseline</span><span class="loading-text">β³ Evaluating (~2 mins)...</span></a><a href="https://huggingface.co/spaces/luciferai-devil/code-debug-env" class="btn">π Documentation</a></div><footer>Built for Meta & PyTorch Γ Scaler Hackathon</footer></div><script>document.getElementById('baseline-btn').addEventListener('click', function(e) {this.classList.add('loading');});</script></body></html>"""
server/app.py+22-4