Spaces:
Running
Running
openhands commited on
Commit ·
168fd64
1
Parent(s): c560986
Add dedicated API Access section to About page
Browse files- New section with links to API documentation
- Links to key endpoints (/api/leaderboard, /api/categories)
- Includes curl example for quick reference
41 unmodified lines424344454647482 unmodified lines5152535455565741 unmodified lines)gr.Markdown("---", elem_classes="divider-line")# --- Section 3: Resources ---gr.HTML("""<h2>Resources</h2>2 unmodified lines<li><a href="https://github.com/OpenHands/software-agent-sdk" target="_blank">Software Agent SDK</a> - The agent code used for evaluation</li><li><a href="https://github.com/OpenHands/benchmarks" target="_blank">Benchmarks</a> - The benchmarking code</li><li><a href="https://github.com/OpenHands/openhands-index-results" target="_blank">Results</a> - Raw evaluation results</li><li><a href="/api/docs" target="_blank">API Documentation</a> - REST API for programmatic access to leaderboard data</li></ul>""")41 unmodified lines42434445464748495051525354555657585960616263642 unmodified lines67686970717241 unmodified lines)gr.Markdown("---", elem_classes="divider-line")# --- Section 4: API Access ---gr.HTML("""<h2>API Access</h2><p>Access leaderboard data programmatically via our REST API:</p><ul class="info-list"><li><a href="https://index.openhands.dev/api/docs" target="_blank">Interactive API Documentation</a> - Swagger UI with all endpoints</li><li><a href="https://index.openhands.dev/api/leaderboard" target="_blank">/api/leaderboard</a> - Full leaderboard with scores and metadata</li><li><a href="https://index.openhands.dev/api/categories" target="_blank">/api/categories</a> - List of benchmark categories</li></ul><p style="margin-top: 10px;"><strong>Example:</strong></p><pre class="citation-block" style="font-size: 0.9em;">curl "https://index.openhands.dev/api/leaderboard?limit=5"</pre>""")gr.Markdown("---", elem_classes="divider-line")# --- Section 5: Resources ---gr.HTML("""<h2>Resources</h2>2 unmodified lines<li><a href="https://github.com/OpenHands/software-agent-sdk" target="_blank">Software Agent SDK</a> - The agent code used for evaluation</li><li><a href="https://github.com/OpenHands/benchmarks" target="_blank">Benchmarks</a> - The benchmarking code</li><li><a href="https://github.com/OpenHands/openhands-index-results" target="_blank">Results</a> - Raw evaluation results</li></ul>""")
about.py+17-2