Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>WandB Run Viewer</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"> | |
| <style> | |
| .iframe-container { | |
| height: calc(100vh - 200px); | |
| width: 100%; | |
| margin-top: 20px; | |
| } | |
| .iframe-container iframe { | |
| width: 100%; | |
| height: 100%; | |
| border: none; | |
| } | |
| .error { | |
| color: red; | |
| margin: 1rem 0; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <main class="container"> | |
| <form method="POST"> | |
| <div class="grid"> | |
| <input | |
| type="text" | |
| name="token" | |
| placeholder="WandB Token" | |
| required | |
| value="{{ token or '' }}" | |
| > | |
| <input | |
| type="text" | |
| name="entity" | |
| placeholder="Entity" | |
| required | |
| value="{{ entity or '' }}" | |
| > | |
| <input | |
| type="text" | |
| name="project" | |
| placeholder="Project" | |
| required | |
| value="{{ project or '' }}" | |
| > | |
| <input | |
| type="text" | |
| name="run_id" | |
| placeholder="Run ID" | |
| required | |
| value="{{ run_id or '' }}" | |
| > | |
| </div> | |
| <button type="submit">Load Run</button> | |
| </form> | |
| {% if error %} | |
| <div class="error"> | |
| {{ error }} | |
| </div> | |
| {% endif %} | |
| {% if iframe_html %} | |
| <div class="iframe-container"> | |
| {{ iframe_html | safe }} | |
| </div> | |
| {% endif %} | |
| </main> | |
| </body> | |
| </html> |