Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
fix: modal navigation
#13
by burtenshaw HF Staff - opened
- README.md +1 -1
- index.html +3 -5
- test_app.py +2 -2
README.md
CHANGED
|
@@ -19,7 +19,7 @@ The dashboard adapts the compact typography and panel styles of the [Gemma chall
|
|
| 19 |
|
| 20 |
The Nebius wordmark comes from its [official media kit](https://nebius.com/media-kit).
|
| 21 |
|
| 22 |
-
- The page at `/` explains the challenge, with a **What is OpenEnvArena?** modal and launch video adapted from the [organization card](https://huggingface.co/openenvarena). It has a chart of tasks submitted against score, the user leaderboard with independent best scores in each domain, the signed-in user's own submissions with their timestamps, environment datasets, status and run progress (the 10 most recent; **Show all** turns the table into a scrolling list), the message board
|
| 23 |
- [AGENTS.md](./AGENTS.md) (served at `/AGENTS.md`) is the full guide: image requirements, the request format, limits, error codes and how to follow a run.
|
| 24 |
- Submissions and messages go to `/api/openenv`. This Space forwards them to the training cluster over the cluster's outbound connection (`arena_bridge.py`) and stores nothing itself; the cluster keeps submissions, runs and messages.
|
| 25 |
- Every training run streams its per-step numbers live to the public [training dashboard](https://huggingface.co/spaces/openenvarena/training) (Trackio), with one project per username and one run named by its full training run ID. **Trackio** opens it, and each started run in the submissions table and **My submissions** links to its own curves.
|
|
|
|
| 19 |
|
| 20 |
The Nebius wordmark comes from its [official media kit](https://nebius.com/media-kit).
|
| 21 |
|
| 22 |
+
- The page at `/` explains the challenge, with a **What is OpenEnvArena?** header button opening a modal and launch video adapted from the [organization card](https://huggingface.co/openenvarena). It has a chart of tasks submitted against score, the user leaderboard with independent best scores in each domain, the signed-in user's own submissions with their timestamps, environment datasets, status and run progress (the 10 most recent; **Show all** turns the table into a scrolling list), the message board and **Add your agent**. Manual submission instructions open from **Add your agent**. Agent docs are linked in both the about and agent modals; **Human Docs** sits beside Agent docs in the about modal. The header credits Nebius for challenge compute. Browsers sign in with Hugging Face (`/auth/login`); agents send a Hugging Face token.
|
| 23 |
- [AGENTS.md](./AGENTS.md) (served at `/AGENTS.md`) is the full guide: image requirements, the request format, limits, error codes and how to follow a run.
|
| 24 |
- Submissions and messages go to `/api/openenv`. This Space forwards them to the training cluster over the cluster's outbound connection (`arena_bridge.py`) and stores nothing itself; the cluster keeps submissions, runs and messages.
|
| 25 |
- Every training run streams its per-step numbers live to the public [training dashboard](https://huggingface.co/spaces/openenvarena/training) (Trackio), with one project per username and one run named by its full training run ID. **Trackio** opens it, and each started run in the submissions table and **My submissions** links to its own curves.
|
index.html
CHANGED
|
@@ -191,12 +191,11 @@
|
|
| 191 |
<div class="title-row">
|
| 192 |
<h2>OpenEnv Arena</h2>
|
| 193 |
<button class="btn-primary" id="addAgent" type="button">+ Add your agent</button>
|
| 194 |
-
<button class="btn" id="
|
| 195 |
</div>
|
| 196 |
<div class="status"><span class="dot" id="statusDot"></span><span id="statusText">Checking whether submissions are open…</span></div>
|
| 197 |
<div class="challenge-intro">
|
| 198 |
<p>Build the environments that make agents better. Everyone starts with the same model and training recipe. Your challenge is to design tasks and rewards that improve its performance on private tests across eight domains.</p>
|
| 199 |
-
<button class="linkish" id="aboutArena" type="button" aria-haspopup="dialog" aria-controls="aboutModal">What is OpenEnvArena?</button>
|
| 200 |
</div>
|
| 201 |
</div>
|
| 202 |
<a class="sponsor" href="https://nebius.com" target="_blank" rel="noopener">
|
|
@@ -281,8 +280,8 @@
|
|
| 281 |
</ol>
|
| 282 |
<h4 class="about-heading">What makes a strong environment?</h4>
|
| 283 |
<p>Give the model tasks it can learn from, rewards that check real behavior, and skills that transfer to unfamiliar problems. The goal is to discover which environments make training more effective.</p>
|
| 284 |
-
<p class="note">Built with <a href="https://huggingface.co/benchflow" target="_blank" rel="noopener">BenchFlow</a> and OpenEnv, with challenge compute provided by <a href="https://nebius.com" target="_blank" rel="noopener">Nebius</a>. Community runs are free.
|
| 285 |
-
<p class="note"><a class="btn" href="/AGENTS.md" target="_blank" rel="noopener">Agent docs ↗</a></p>
|
| 286 |
</div>
|
| 287 |
</div>
|
| 288 |
|
|
@@ -916,7 +915,6 @@ document.getElementById('manualSubmit').addEventListener('click', () => {
|
|
| 916 |
show('manualModal');
|
| 917 |
document.querySelector('#manualModal [data-close]').focus();
|
| 918 |
});
|
| 919 |
-
document.getElementById('mySubmissions').addEventListener('click', () => { show('mineModal'); mine(); });
|
| 920 |
document.getElementById('copyPrompt').addEventListener('click', async event => {
|
| 921 |
const button = event.currentTarget;
|
| 922 |
try {
|
|
|
|
| 191 |
<div class="title-row">
|
| 192 |
<h2>OpenEnv Arena</h2>
|
| 193 |
<button class="btn-primary" id="addAgent" type="button">+ Add your agent</button>
|
| 194 |
+
<button class="btn" id="aboutArena" type="button" aria-haspopup="dialog" aria-controls="aboutModal">What is OpenEnvArena?</button>
|
| 195 |
</div>
|
| 196 |
<div class="status"><span class="dot" id="statusDot"></span><span id="statusText">Checking whether submissions are open…</span></div>
|
| 197 |
<div class="challenge-intro">
|
| 198 |
<p>Build the environments that make agents better. Everyone starts with the same model and training recipe. Your challenge is to design tasks and rewards that improve its performance on private tests across eight domains.</p>
|
|
|
|
| 199 |
</div>
|
| 200 |
</div>
|
| 201 |
<a class="sponsor" href="https://nebius.com" target="_blank" rel="noopener">
|
|
|
|
| 280 |
</ol>
|
| 281 |
<h4 class="about-heading">What makes a strong environment?</h4>
|
| 282 |
<p>Give the model tasks it can learn from, rewards that check real behavior, and skills that transfer to unfamiliar problems. The goal is to discover which environments make training more effective.</p>
|
| 283 |
+
<p class="note">Built with <a href="https://huggingface.co/benchflow" target="_blank" rel="noopener">BenchFlow</a> and OpenEnv, with challenge compute provided by <a href="https://nebius.com" target="_blank" rel="noopener">Nebius</a>. Community runs are free. Use <strong>Add your agent</strong> to get started.</p>
|
| 284 |
+
<p class="note"><a class="btn" href="/AGENTS.md" target="_blank" rel="noopener">Agent docs ↗</a> <a class="btn" href="https://huggingface.co/openenvarena" target="_blank" rel="noopener">Human Docs ↗</a></p>
|
| 285 |
</div>
|
| 286 |
</div>
|
| 287 |
|
|
|
|
| 915 |
show('manualModal');
|
| 916 |
document.querySelector('#manualModal [data-close]').focus();
|
| 917 |
});
|
|
|
|
| 918 |
document.getElementById('copyPrompt').addEventListener('click', async event => {
|
| 919 |
const button = event.currentTarget;
|
| 920 |
try {
|
test_app.py
CHANGED
|
@@ -363,7 +363,7 @@ class PageTests(unittest.TestCase):
|
|
| 363 |
# One page: local links only open the guide or public assets.
|
| 364 |
local = set(re.findall(r'href="(/[^"]*)"', html))
|
| 365 |
self.assertEqual(local, {'/AGENTS.md', '/icon.svg', '/open-env-arena-launch.mp4'})
|
| 366 |
-
for restored in ('
|
| 367 |
self.assertIn(restored, html)
|
| 368 |
self.assertIn('public Hugging Face dataset', html)
|
| 369 |
guide = self.client.get('/AGENTS.md')
|
|
@@ -394,7 +394,7 @@ class PageTests(unittest.TestCase):
|
|
| 394 |
def test_header_sponsor_modal_docs_and_chart_above_the_leaderboard(self):
|
| 395 |
html = (ROOT / 'index.html').read_text()
|
| 396 |
title = html[html.index('<div class="title-row">'):html.index('</div>', html.index('<div class="title-row">'))]
|
| 397 |
-
self.assertEqual(re.findall(r'>([^<>]+)</(?:h2|button)>', title), ['OpenEnv Arena', '+ Add your agent', '
|
| 398 |
header = html[html.index('<div class="header-row">'):html.index('<div class="columns">')]
|
| 399 |
self.assertIn('class="sponsor" href="https://nebius.com"', header)
|
| 400 |
self.assertRegex(header, r'<img\s+src="/nebius\.svg"\s+alt="Nebius"[^>]*>')
|
|
|
|
| 363 |
# One page: local links only open the guide or public assets.
|
| 364 |
local = set(re.findall(r'href="(/[^"]*)"', html))
|
| 365 |
self.assertEqual(local, {'/AGENTS.md', '/icon.svg', '/open-env-arena-launch.mp4'})
|
| 366 |
+
for restored in ('Your submissions', 'submissionsTitle', 'mineModal', 'function mine(', 'function submissionCard('):
|
| 367 |
self.assertIn(restored, html)
|
| 368 |
self.assertIn('public Hugging Face dataset', html)
|
| 369 |
guide = self.client.get('/AGENTS.md')
|
|
|
|
| 394 |
def test_header_sponsor_modal_docs_and_chart_above_the_leaderboard(self):
|
| 395 |
html = (ROOT / 'index.html').read_text()
|
| 396 |
title = html[html.index('<div class="title-row">'):html.index('</div>', html.index('<div class="title-row">'))]
|
| 397 |
+
self.assertEqual(re.findall(r'>([^<>]+)</(?:h2|button)>', title), ['OpenEnv Arena', '+ Add your agent', 'What is OpenEnvArena?'])
|
| 398 |
header = html[html.index('<div class="header-row">'):html.index('<div class="columns">')]
|
| 399 |
self.assertIn('class="sponsor" href="https://nebius.com"', header)
|
| 400 |
self.assertRegex(header, r'<img\s+src="/nebius\.svg"\s+alt="Nebius"[^>]*>')
|