Spaces:
Running
Running
Download index.html from adaptabilities/Koda-Frontend: direct link, hf CLI and curl.
- Browser
- Download file 6.28 kB
-
https://huggingface.co/spaces/adaptabilities/Koda-Frontend/resolve/main/index.html
- Command line
-
hf download hf://spaces/adaptabilities/Koda-Frontend/index.html
-
curl -L -o index.html https://huggingface.co/spaces/adaptabilities/Koda-Frontend/resolve/main/index.html
6.28 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <title>Adapt Chatbot</title> | |
| <style> | |
| /* BASE STYLES */ | |
| body, html { | |
| margin: 0; | |
| padding: 0; | |
| height: 100vh; /* Standard viewport height */ | |
| width: 100%; | |
| overflow: hidden; | |
| background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); | |
| font-family: 'Nunito Sans', sans-serif ; | |
| box-sizing: border-box; | |
| position: relative; /* Established coordinate system */ | |
| } | |
| /* HEADER STYLES */ | |
| .header-message { | |
| position: absolute; | |
| top: 20px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| width: 80%; | |
| max-width: 800px; | |
| height: auto; /* Let it grow with text */ | |
| background: white; | |
| padding: 16px 24px; | |
| border-radius: 12px; | |
| text-align: center; | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) ; | |
| z-index: 1000; | |
| box-sizing: border-box; | |
| } | |
| .header-message h2 { | |
| margin: 0 0 8px 0; | |
| color: #2d3748; | |
| font-size: 24px; | |
| font-weight: 700; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 12px; | |
| } | |
| .header-message h2 img { | |
| width: 40px; | |
| height: 40px; | |
| object-fit: contain; | |
| } | |
| .header-message p { | |
| margin: 0; | |
| color: #4a5568; | |
| font-size: 14px; | |
| line-height: 1.5; | |
| } | |
| /* CHAT CONTAINER - THE ANCHOR METHOD */ | |
| #anything-llm-embed-chat-container { | |
| position: absolute ; | |
| left: 50% ; | |
| transform: translateX(-50%) ; | |
| /* DESKTOP POSITIONING */ | |
| /* We pin the TOP to sit below the header */ | |
| top: 150px ; | |
| /* We pin the BOTTOM to sit above the page edge */ | |
| bottom: 20px ; | |
| height: auto ; /* Allow top/bottom to define height */ | |
| width: 80% ; | |
| max-width: 1000px ; | |
| background-color: transparent ; | |
| box-shadow: none ; | |
| border: none ; | |
| padding: 0 ; | |
| z-index: 999 ; | |
| } | |
| #anything-llm-embed-chat-container iframe { | |
| width: 100% ; | |
| height: 100% ; | |
| background-color: white ; | |
| border-radius: 12px ; | |
| box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25) ; | |
| border: 1px solid rgba(0,0,0,0.05) ; | |
| display: block ; | |
| } | |
| /* --- MOBILE RESPONSIVENESS (Max Width 768px) --- */ | |
| @media screen and (max-width: 768px) { | |
| /* Compact Header for Mobile */ | |
| .header-message { | |
| top: 10px; | |
| width: 95%; | |
| padding: 12px 16px; | |
| } | |
| .header-message h2 { | |
| font-size: 18px; | |
| } | |
| .header-message h2 img { | |
| width: 30px; | |
| height: 30px; | |
| } | |
| .header-message p { | |
| font-size: 12px; | |
| display: block; | |
| } | |
| /* Adjust Chat Position for Mobile Header */ | |
| #anything-llm-embed-chat-container { | |
| width: 96% ; | |
| /* Move UP because the header is smaller on mobile */ | |
| top: 115px ; | |
| bottom: 10px ; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="header-message"> | |
| <h2><img src="https://res.cloudinary.com/de82bosts/image/upload/v1768940576/25-09-19_Adapt_AdaptStore-Koda_Waving_smmbyd.png" alt="Koda">Hey! I'm Koda</h2> | |
| <p>I can answer questions about AdaptAbilities policies and processes. My answers may be inaccurate—please always reference the provided context.</p> | |
| </div> | |
| <script | |
| data-embed-id="f3827b04-baca-4a07-ae93-2d06ea5437fe" | |
| data-base-api-url="https://adaptabilities-adapt-chatbot.hf.space/api/embed" | |
| src="https://adaptabilities-adapt-chatbot.hf.space/embed/anythingllm-chat-widget.min.js" | |
| data-assistant-icon="https://res.cloudinary.com/de82bosts/image/upload/v1767909204/25-09-19_Adapt_AdaptStore-Koda_Sitting_ddmggb.png" | |
| data-assistant-name="Koda Korner" | |
| data-open-on-load="on" | |
| data-no-header="true" | |
| data-window-height="100%" | |
| data-window-width="100%" | |
| data-temperature="0.1" | |
| data-prompt="Role: You are Koda Korner, an intelligent and helpful documentation retrieval assistant. Instructions: 1. GREETINGS: If the user explicitly greets you (e.g., "Hi", "Hello"), respond warmly and introduce yourself as Koda Korner. For all other inputs, skip the greeting and answer immediately. 2. SYNTHESIS & SMARTS: Do not just copy-paste text. Read the provided context, understand the intent of the user's question, and synthesize a comprehensive answer based ONLY on the evidence provided. 3. CITATIONS (CRITICAL): - You must cite your sources. - Look for the document name, title, or filename usually located at the beginning of each context block (e.g., "Source: manual.pdf" or "[Filename]"). - NEVER refer to sources as "Context 0" or "Context 1". - If you cannot find a specific filename, refer to the source as "the provided documentation". 4. REFUSAL: If the provided context does not contain the answer, strictly reply: "The provided documents do not contain the answer to this question." 5. FORMATTING: Use Markdown for headers or lists to make the answer readable. Reference Context: {context} Question: {query}" | |
| ></script> | |
| </body> | |
| </html> |