Spaces:
Runtime error
Runtime error
Download static/index.html from SemantIQ/llm-dictionary: direct link, hf CLI and curl.
- Browser
- Download file 6.43 kB
-
https://huggingface.co/spaces/SemantIQ/llm-dictionary/resolve/main/static/index.html
- Command line
-
hf download hf://spaces/SemantIQ/llm-dictionary/static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SemantIQ/llm-dictionary/resolve/main/static/index.html
6.43 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>LLM Dictionary</title> | |
| <link rel="stylesheet" href="/static/styles.css"> | |
| <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=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <header> | |
| <h1>📖 LLM Dictionary</h1> | |
| <p class="subtitle">AI-powered multilingual dictionary — English, తెలుగు, हिन्दी, संस्कृतम्</p> | |
| </header> | |
| <div class="search-area"> | |
| <div class="language-selector"> | |
| <button class="lang-btn active" data-lang="english" onclick="selectLanguage(this)">English</button> | |
| <button class="lang-btn" data-lang="telugu" onclick="selectLanguage(this)">తెలుగు</button> | |
| <button class="lang-btn" data-lang="hindi" onclick="selectLanguage(this)">हिन्दी</button> | |
| <button class="lang-btn" data-lang="sanskrit" onclick="selectLanguage(this)">संस्कृतम्</button> | |
| </div> | |
| <div class="search-box"> | |
| <input type="text" id="wordInput" placeholder="Type a word..." autocomplete="off" autofocus> | |
| <button id="micBtn" class="mic-btn" onclick="toggleVoice()" title="Voice search"> | |
| <svg id="micIcon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/><line x1="8" y1="23" x2="16" y2="23"/></svg> | |
| </button> | |
| <button id="searchBtn" onclick="lookupWord()"> | |
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg> | |
| Search | |
| </button> | |
| </div> | |
| <div class="settings-toggle"> | |
| <button onclick="toggleSettings()" id="settingsBtn">⚙️ API Key Settings</button> | |
| </div> | |
| <div class="settings-panel" id="settingsPanel" style="display:none;"> | |
| <label for="apiKeyInput">Groq API Key <a href="https://console.groq.com/keys" target="_blank" rel="noopener">(get free key)</a></label> | |
| <input type="password" id="apiKeyInput" placeholder="gsk_..." value=""> | |
| <button onclick="saveApiKey()">Save Key</button> | |
| <p class="hint">Your key is stored only in your browser's local storage.</p> | |
| </div> | |
| </div> | |
| <div id="loading" class="loading" style="display:none;"> | |
| <div class="spinner"></div> | |
| <span>Looking up word...</span> | |
| </div> | |
| <div id="error" class="error" style="display:none;"></div> | |
| <div id="result" class="result" style="display:none;"> | |
| <div class="word-header"> | |
| <h2 id="resWord"></h2> | |
| <span id="resPhonetic" class="phonetic"></span> | |
| </div> | |
| <div id="resTransliteration" class="transliteration" style="display:none;"></div> | |
| <div id="resLanguageBadge" class="language-badge"></div> | |
| <div id="resPOS" class="pos-tags"></div> | |
| <section id="definitionsSection" class="section"> | |
| <h3>Definitions</h3> | |
| <div id="resDefinitions"></div> | |
| </section> | |
| <div class="two-col"> | |
| <section id="synonymsSection" class="section"> | |
| <h3>Synonyms</h3> | |
| <div id="resSynonyms" class="tag-list"></div> | |
| </section> | |
| <section id="antonymsSection" class="section"> | |
| <h3>Antonyms</h3> | |
| <div id="resAntonyms" class="tag-list"></div> | |
| </section> | |
| </div> | |
| <section id="etymologySection" class="section"> | |
| <h3>Etymology</h3> | |
| <p id="resEtymology"></p> | |
| </section> | |
| <section id="usageSection" class="section"> | |
| <h3>Usage Notes</h3> | |
| <p id="resUsage"></p> | |
| </section> | |
| </div> | |
| <div id="errorResult" class="error-result" style="display:none;"> | |
| <p id="resError"></p> | |
| </div> | |
| <!-- Like & Comment Section --> | |
| <div class="community-section"> | |
| <div class="like-row"> | |
| <button class="like-btn" id="likeBtn" onclick="toggleLike()"> | |
| <span id="likeIcon">🤍</span> | |
| <span id="likeCount">0</span> | |
| </button> | |
| <button class="comment-toggle-btn" onclick="toggleComments()"> | |
| 💬 <span id="commentCount">0 Comments</span> | |
| </button> | |
| </div> | |
| <div class="comments-panel" id="commentsPanel" style="display:none;"> | |
| <div class="comment-form"> | |
| <input type="text" id="commentName" placeholder="Your name" maxlength="50"> | |
| <textarea id="commentText" placeholder="Write a comment..." maxlength="500" rows="2"></textarea> | |
| <button onclick="submitComment()">Post Comment</button> | |
| </div> | |
| <div class="comments-list" id="commentsList"></div> | |
| </div> | |
| </div> | |
| <footer> | |
| <p>Powered by Groq + Llama 3.3 70B · English · తెలుగు · हिन्दी · संस्कृतम्</p> | |
| <p><a href="/stats" style="color:var(--accent);font-size:0.8rem;">📊 Usage Dashboard</a></p> | |
| </footer> | |
| </div> | |
| <script src="/static/app.js"></script> | |
| </body> | |
| </html> | |