ai-challenge / static /index.html
Sebastian Kułaga
Nicer page
f6f93c3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fast API 🤗 Space served with Uvicorn</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
}
main {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
box-sizing: border-box;
}
h1 {
font-size: 1.8em;
margin-bottom: 0.5em;
}
p {
font-size: 1em;
line-height: 1.5em;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 0.5em;
}
input {
padding: 10px;
font-size: 1em;
margin-bottom: 1em;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 10px;
font-size: 1em;
color: white;
background-color: #007bff;
border: none;
border-radius: 4px;
cursor: pointer;
margin-bottom: 1em;
}
button:hover {
background-color: #0056b3;
}
.text-class-output {
font-size: 1em;
color: #333;
margin-top: 1em;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f9f9f9;
}
@media (max-width: 600px) {
h1 {
font-size: 1.5em;
}
input,
button {
font-size: 0.9em;
}
.text-class-output {
font-size: 0.9em;
}
}
@media (max-width: 400px) {
h1 {
font-size: 1.2em;
}
input,
button {
font-size: 0.8em;
}
.text-class-output {
font-size: 0.8em;
}
}
</style>
<script type="module" src="script.js"></script>
</head>
<body>
<main>
<section id="text-class">
<h1>AI Challenge Query Classification using DistilBERT</h1>
<p>
Model:
<a
href="https://huggingface.co/SebaK13/DistilBERT-finetuned-customer-queries-balanced"
rel="noreferrer"
target="_blank"
>DistilBERT</a
>
</p>
<form class="text-class-form">
<label for="text-class-input">User Query</label>
<input
id="text-class-input"
type="text"
value="Are pets allowed on flights?"
/>
<button id="text-class-submit">Submit</button>
<label for="text-class-output">Label</label>
<p class="text-class-output"></p>
</form>
</section>
</main>
</body>
</html>