Spaces:
Sleeping

clair / app /static /index.html
MVPRM's picture
Deploy 67f193d from GitHub
6444a02 verified
Raw History Blame Contribute Delete
1.83 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CLAIR — Clause Intelligence and Retrieval</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<main>
<header>
<h1>CLAIR <span class="expansion">Clause Intelligence and Retrieval</span></h1>
<p class="sub">Describe a clause in your own words to find how 50 real Terms of Service phrase it, and check whether it reads as potentially unfair.</p>
<p class="status" id="status">Connecting…</p>
</header>
<form id="search-form">
<label for="query">Sentence or clause</label>
<textarea id="query" rows="4" maxlength="2000" required
placeholder="e.g. We may suspend or terminate your account at any time without notice."></textarea>
<div class="controls">
<label class="inline" for="k">Results
<select id="k">
<option value="2">2</option>
<option value="5">5</option>
<option value="10" selected>10</option>
<option value="20">20</option>
</select>
</label>
<span class="method">Retrieval: <strong id="method">–</strong></span>
<span class="spacer"></span>
<button type="button" id="classify-btn" class="secondary" hidden>Classify</button>
<button type="submit" id="search-btn">Search</button>
</div>
<p class="hint">Ctrl+Enter to search. Scores rank results; they are not probabilities.</p>
</form>
<section id="classification" class="classification" hidden aria-live="polite"></section>
<p id="error" class="error" hidden role="alert"></p>
<section id="results" aria-live="polite"></section>
</main>
<script src="/static/app.js"></script>
</body>
</html>