Spaces:
Runtime error
Runtime error
Download static/stats.html from SemantIQ/llm-dictionary: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/spaces/SemantIQ/llm-dictionary/resolve/main/static/stats.html
- Command line
-
hf download hf://spaces/SemantIQ/llm-dictionary/static/stats.html
-
curl -L -o stats.html https://huggingface.co/spaces/SemantIQ/llm-dictionary/resolve/main/static/stats.html
11.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>LLM Dictionary β Usage Dashboard</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --bg: #f8fafc; --card: #fff; --text: #0f172a; --muted: #64748b; | |
| --accent: #2563eb; --accent-light: #dbeafe; --border: #e2e8f0; | |
| --green: #059669; --green-bg: #ecfdf5; | |
| --orange: #d97706; --orange-bg: #fffbeb; | |
| --purple: #7c3aed; --purple-bg: #f5f3ff; | |
| } | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; } | |
| .container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; } | |
| header { margin-bottom: 2rem; } | |
| header h1 { font-size: 1.8rem; font-weight: 700; } | |
| header p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; } | |
| .back-link { color: var(--accent); text-decoration: none; font-size: 0.85rem; display: inline-block; margin-bottom: 1rem; } | |
| .back-link:hover { text-decoration: underline; } | |
| /* KPI Cards */ | |
| .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; } | |
| .kpi-card { | |
| background: var(--card); border: 1px solid var(--border); border-radius: 12px; | |
| padding: 1.25rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); | |
| } | |
| .kpi-card .kpi-value { font-size: 2rem; font-weight: 700; } | |
| .kpi-card .kpi-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; } | |
| .kpi-card.blue .kpi-value { color: var(--accent); } | |
| .kpi-card.green .kpi-value { color: var(--green); } | |
| .kpi-card.orange .kpi-value { color: var(--orange); } | |
| .kpi-card.purple .kpi-value { color: var(--purple); } | |
| /* Sections */ | |
| .section { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); } | |
| .section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } | |
| /* Bar chart */ | |
| .bar-chart { display: flex; flex-direction: column; gap: 0.5rem; } | |
| .bar-row { display: flex; align-items: center; gap: 0.75rem; } | |
| .bar-label { font-size: 0.85rem; min-width: 100px; text-align: right; color: var(--text); font-weight: 500; } | |
| .bar-track { flex: 1; height: 28px; background: #f1f5f9; border-radius: 6px; overflow: hidden; position: relative; } | |
| .bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; display: flex; align-items: center; padding-left: 0.5rem; } | |
| .bar-fill span { font-size: 0.75rem; font-weight: 600; color: white; } | |
| .bar-fill.blue { background: var(--accent); } | |
| .bar-fill.green { background: var(--green); } | |
| .bar-fill.orange { background: var(--orange); } | |
| .bar-fill.purple { background: var(--purple); } | |
| /* Timeline */ | |
| .timeline-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-top: 1rem; } | |
| .timeline-bar { flex: 1; background: var(--accent-light); border-radius: 3px 3px 0 0; min-width: 8px; transition: height 0.3s ease; position: relative; } | |
| .timeline-bar:hover { background: var(--accent); } | |
| .timeline-bar:hover .timeline-tooltip { display: block; } | |
| .timeline-tooltip { | |
| display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); | |
| background: var(--text); color: white; padding: 0.25rem 0.5rem; border-radius: 4px; | |
| font-size: 0.7rem; white-space: nowrap; margin-bottom: 4px; | |
| } | |
| /* Recent lookups table */ | |
| .recent-table { width: 100%; border-collapse: collapse; } | |
| .recent-table th { text-align: left; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--border); } | |
| .recent-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; } | |
| .recent-table tr:last-child td { border-bottom: none; } | |
| .lang-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.75rem; font-weight: 500; } | |
| .lang-badge.english { background: var(--accent-light); color: var(--accent); } | |
| .lang-badge.telugu { background: var(--green-bg); color: var(--green); } | |
| .lang-badge.hindi { background: var(--orange-bg); color: var(--orange); } | |
| .lang-badge.sanskrit { background: var(--purple-bg); color: var(--purple); } | |
| .loading-msg { text-align: center; color: var(--muted); padding: 3rem; } | |
| .auto-refresh { font-size: 0.75rem; color: var(--muted); } | |
| @media (max-width: 600px) { | |
| .container { padding: 1rem; } | |
| .kpi-grid { grid-template-columns: 1fr 1fr; } | |
| .bar-label { min-width: 70px; font-size: 0.8rem; } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <a href="/" class="back-link">β Back to Dictionary</a> | |
| <header> | |
| <h1>π Usage Dashboard</h1> | |
| <p>Real-time analytics for LLM Dictionary <span class="auto-refresh">(refreshes every 15s)</span></p> | |
| </header> | |
| <div id="content"><p class="loading-msg">Loading analytics...</p></div> | |
| </div> | |
| <script> | |
| </script> | |
| </body> | |
| </html> | |