RohitChandramouli6618 commited on
Commit
ee73dde
·
1 Parent(s): fa9b8c7

Rewrite app.py: 3-phase judge dashboard, /validate endpoint, live Phase 1 checks

Browse files
Files changed (1) hide show
  1. server/app.py +2 -3
server/app.py CHANGED
@@ -13,7 +13,6 @@
13
 
14
  import sys
15
  import os
16
- import re
17
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
18
 
19
  from openenv.core.env_server import create_app
@@ -1113,7 +1112,7 @@ async function runValidation() {
1113
 
1114
  const container = document.getElementById('v-checks');
1115
  container.innerHTML = Object.entries(d.checks).map(([key, val]) => {
1116
- label = re.sub("\\b\\w", lambda m: m.group(0).upper(), key.replace("_", " "))
1117
  const cls = val.pass ? 'pass' : 'fail';
1118
  const icon = val.pass ? '✓' : '✗';
1119
  return `<div class="check-item">
@@ -1198,4 +1197,4 @@ async function runDemo(task) {
1198
  }
1199
  </script>
1200
  </body>
1201
- </html>"""
 
13
 
14
  import sys
15
  import os
 
16
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
17
 
18
  from openenv.core.env_server import create_app
 
1112
 
1113
  const container = document.getElementById('v-checks');
1114
  container.innerHTML = Object.entries(d.checks).map(([key, val]) => {
1115
+ const label = key.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase());
1116
  const cls = val.pass ? 'pass' : 'fail';
1117
  const icon = val.pass ? '✓' : '✗';
1118
  return `<div class="check-item">
 
1197
  }
1198
  </script>
1199
  </body>
1200
+ </html>"""