Spaces:
Sleeping
Sleeping
Download frontend/index.html from veltrixcode/businesslawrag: direct link, hf CLI and curl.
- Browser
- Download file 8.34 kB
-
https://huggingface.co/spaces/veltrixcode/businesslawrag/resolve/main/frontend/index.html
- Command line
-
hf download hf://spaces/veltrixcode/businesslawrag/frontend/index.html
-
curl -L -o index.html https://huggingface.co/spaces/veltrixcode/businesslawrag/resolve/main/frontend/index.html
8.34 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>JurisAI — ICAI Business Laws Study Assistant</title> | |
| <meta name="description" content="AI-powered study assistant for ICAI CA Foundation Paper-2: Business Laws. Grounded entirely in official ICAI study material."> | |
| <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=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet"> | |
| <link rel="stylesheet" href="/static/style.css"> | |
| <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | |
| </head> | |
| <body> | |
| <div class="aui-root"> | |
| <!-- Sidebar --> | |
| <aside class="aui-sidebar"> | |
| <div class="aui-sidebar-brand"> | |
| <div class="aui-logo" aria-hidden="true"> | |
| <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg> | |
| </div> | |
| <div class="aui-brand-meta"> | |
| <span class="aui-brand-title">JurisAI</span> | |
| <span class="aui-brand-sub">ICAI CA Foundation · Paper 2</span> | |
| </div> | |
| </div> | |
| <div class="aui-group"> | |
| <label class="aui-label" for="modelSelect">Model</label> | |
| <div class="aui-select-wrapper"> | |
| <select id="modelSelect"></select> | |
| </div> | |
| </div> | |
| <div class="aui-group"> | |
| <label class="aui-label" for="chapterSelect">Chapter filter</label> | |
| <div class="aui-select-wrapper"> | |
| <select id="chapterSelect"> | |
| <option value="All">All 7 Acts & Chapters</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="aui-group"> | |
| <label class="aui-label">Index</label> | |
| <div class="aui-badge-card"> | |
| <div class="aui-badge-item"> | |
| <span class="aui-badge-val" id="chunkCount">—</span> | |
| <span class="aui-badge-lbl">Indexed chunks</span> | |
| </div> | |
| <div class="aui-badge-divider"></div> | |
| <div class="aui-badge-item"> | |
| <span class="aui-badge-val">BGE</span> | |
| <span class="aui-badge-lbl">Embeddings</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="aui-group" style="flex-grow: 1;"> | |
| <label class="aui-label">Quick questions</label> | |
| <div class="aui-preset-list"> | |
| <button class="aui-preset-item" onclick="sendPreset('What is the maximum number of partners allowed in a partnership firm?')"> | |
| <span class="aui-preset-title">Max partners limit</span> | |
| <span class="aui-preset-desc">Sec 464, Companies Act</span> | |
| </button> | |
| <button class="aui-preset-item" onclick="sendPreset('Explain the Doctrine of Ultra Vires with consequences and exceptions.')"> | |
| <span class="aui-preset-title">Doctrine of Ultra Vires</span> | |
| <span class="aui-preset-desc">Ashbury Railway & MOA scope</span> | |
| </button> | |
| <button class="aui-preset-item" onclick="sendPreset('What are the rights of an unpaid seller against the goods and against buyer personally?')"> | |
| <span class="aui-preset-title">Unpaid seller's rights</span> | |
| <span class="aui-preset-desc">Lien, stoppage & suit</span> | |
| </button> | |
| <button class="aui-preset-item" onclick="sendPreset('What are the exceptions to the rule No Consideration No Contract under Section 25?')"> | |
| <span class="aui-preset-title">Section 25 exceptions</span> | |
| <span class="aui-preset-desc">Natural love & time-barred debt</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="aui-sidebar-footer"> | |
| <button class="aui-clear-btn" onclick="clearChat()"> | |
| <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18m-2 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"/></svg> | |
| <span>New thread</span> | |
| </button> | |
| </div> | |
| </aside> | |
| <!-- Thread --> | |
| <main class="aui-thread-main"> | |
| <header class="aui-header"> | |
| <div class="aui-header-info"> | |
| <span class="aui-header-pill">CA Foundation · Business Laws</span> | |
| <h2>Legal Reasoning & RAG Assistant</h2> | |
| </div> | |
| <div class="aui-header-status" id="statusIndicator"> | |
| <span class="aui-status-dot"></span> | |
| <span>Ready</span> | |
| </div> | |
| </header> | |
| <div class="aui-thread-viewport" id="chatViewport"> | |
| <div class="aui-welcome" id="welcomeHero"> | |
| <span class="aui-welcome-badge">Grounded in official ICAI study material only</span> | |
| <h1>Ask any question in<br><em>Business Laws.</em></h1> | |
| <p>Statutory doctrine, case analysis, CBQ problems, or general chat — answers come directly from the official ICAI book excerpts, nothing else.</p> | |
| <div class="aui-starter-grid"> | |
| <div class="aui-starter-card" onclick="sendPreset('Explain legal rules regarding minor\'s agreement with leading case laws.')"> | |
| <h3>Minor's agreement</h3> | |
| <p>Mohori Bibee precedent & competency</p> | |
| </div> | |
| <div class="aui-starter-card" onclick="sendPreset('Explain Corporate Veil doctrine and grounds for lifting the veil.')"> | |
| <h3>Lifting the corporate veil</h3> | |
| <p>Salomon case & fraud exceptions</p> | |
| </div> | |
| <div class="aui-starter-card" onclick="sendPreset('Distinguish between Contract of Indemnity and Guarantee.')"> | |
| <h3>Indemnity vs. Guarantee</h3> | |
| <p>Parties, liability & remedies</p> | |
| </div> | |
| <div class="aui-starter-card" onclick="sendPreset('What are the rules regarding Caveat Emptor and its exceptions in Sale of Goods?')"> | |
| <h3>Caveat Emptor</h3> | |
| <p>Buyer beware & implied warranties</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="aui-messages-container" id="messagesStream"></div> | |
| </div> | |
| <div class="aui-composer-wrapper"> | |
| <form class="aui-composer" id="chatForm" onsubmit="handleFormSubmit(event)"> | |
| <textarea | |
| id="queryInput" | |
| class="aui-composer-input" | |
| placeholder="Ask a legal problem, section, or doctrine…" | |
| rows="1" | |
| onkeydown="handleKeyDown(event)" | |
| ></textarea> | |
| <button type="submit" id="sendBtn" class="aui-composer-send" aria-label="Send message"> | |
| <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M5 12h14M12 5l7 7-7 7"/></svg> | |
| </button> | |
| </form> | |
| <div class="aui-composer-footer"> | |
| Answers are grounded in ICAI CA Foundation Paper-2 study material | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script src="/static/app.js"></script> | |
| </body> | |
| </html> | |