nbroad commited on
Commit
48928c4
·
verified ·
1 Parent(s): 82fa34b

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +50 -0
index.html ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>WandB Run Viewer</title>
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
8
+ <style>
9
+ .iframe-container {
10
+ height: calc(100vh - 200px);
11
+ width: 100%;
12
+ margin-top: 20px;
13
+ }
14
+ .iframe-container iframe {
15
+ width: 100%;
16
+ height: 100%;
17
+ border: none;
18
+ }
19
+ .error {
20
+ color: red;
21
+ margin: 1rem 0;
22
+ }
23
+ </style>
24
+ </head>
25
+ <body>
26
+ <main class="container">
27
+ <form method="POST">
28
+ <div class="grid">
29
+ <input type="text" name="token" placeholder="WandB Token" required>
30
+ <input type="text" name="entity" placeholder="Entity" required>
31
+ <input type="text" name="project" placeholder="Project" required>
32
+ <input type="text" name="run_id" placeholder="Run ID" required>
33
+ </div>
34
+ <button type="submit">Load Run</button>
35
+ </form>
36
+
37
+ {% if error %}
38
+ <div class="error">
39
+ {{ error }}
40
+ </div>
41
+ {% endif %}
42
+
43
+ {% if iframe_html %}
44
+ <div class="iframe-container">
45
+ {{ iframe_html | safe }}
46
+ </div>
47
+ {% endif %}
48
+ </main>
49
+ </body>
50
+ </html>