Commit
·
84df6bb
1
Parent(s):
a9aac31
UI final touches
Browse files- ui/static/style.css +36 -20
- ui/templates/index.html +15 -10
ui/static/style.css
CHANGED
|
@@ -1,49 +1,64 @@
|
|
| 1 |
body {
|
| 2 |
-
font-family: Arial, sans-serif;
|
| 3 |
-
background-color: #
|
| 4 |
color: #333;
|
| 5 |
margin: 0;
|
| 6 |
padding: 0;
|
| 7 |
}
|
| 8 |
|
| 9 |
.container {
|
| 10 |
-
max-width:
|
| 11 |
margin: 50px auto;
|
| 12 |
-
padding:
|
| 13 |
background-color: #fff;
|
| 14 |
-
box-shadow: 0
|
| 15 |
-
border-radius:
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
h1
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
-
.input-section {
|
| 23 |
-
margin
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
textarea {
|
| 27 |
width: 100%;
|
| 28 |
-
height:
|
| 29 |
-
padding:
|
| 30 |
font-size: 16px;
|
| 31 |
margin-top: 5px;
|
| 32 |
-
border-radius:
|
| 33 |
border: 1px solid #ccc;
|
| 34 |
resize: vertical;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
button {
|
| 38 |
display: block;
|
| 39 |
margin: 15px auto 0 auto;
|
| 40 |
-
padding:
|
| 41 |
font-size: 16px;
|
| 42 |
background-color: #4a90e2;
|
| 43 |
color: #fff;
|
| 44 |
border: none;
|
| 45 |
-
border-radius:
|
| 46 |
cursor: pointer;
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
button:hover {
|
|
@@ -53,12 +68,13 @@ button:hover {
|
|
| 53 |
.output-section pre {
|
| 54 |
background-color: #f0f0f0;
|
| 55 |
padding: 15px;
|
| 56 |
-
border-radius:
|
| 57 |
-
min-height:
|
| 58 |
overflow-x: auto;
|
| 59 |
}
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
}
|
|
|
|
| 1 |
body {
|
| 2 |
+
font-family: 'Segoe UI', Arial, sans-serif;
|
| 3 |
+
background-color: #f4f6f8;
|
| 4 |
color: #333;
|
| 5 |
margin: 0;
|
| 6 |
padding: 0;
|
| 7 |
}
|
| 8 |
|
| 9 |
.container {
|
| 10 |
+
max-width: 900px;
|
| 11 |
margin: 50px auto;
|
| 12 |
+
padding: 30px;
|
| 13 |
background-color: #fff;
|
| 14 |
+
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
|
| 15 |
+
border-radius: 10px;
|
| 16 |
+
text-align: center;
|
| 17 |
}
|
| 18 |
|
| 19 |
+
h1 {
|
| 20 |
+
margin-bottom: 5px;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.subtitle {
|
| 24 |
+
margin-top: 0;
|
| 25 |
+
font-weight: normal;
|
| 26 |
+
color: #666;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
.input-section, .output-section {
|
| 30 |
+
margin: 20px 0;
|
| 31 |
+
text-align: left;
|
| 32 |
}
|
| 33 |
|
| 34 |
textarea {
|
| 35 |
width: 100%;
|
| 36 |
+
height: 120px;
|
| 37 |
+
padding: 12px;
|
| 38 |
font-size: 16px;
|
| 39 |
margin-top: 5px;
|
| 40 |
+
border-radius: 6px;
|
| 41 |
border: 1px solid #ccc;
|
| 42 |
resize: vertical;
|
| 43 |
+
box-sizing: border-box;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
textarea::placeholder {
|
| 47 |
+
color: #888;
|
| 48 |
+
opacity: 0.7;
|
| 49 |
}
|
| 50 |
|
| 51 |
button {
|
| 52 |
display: block;
|
| 53 |
margin: 15px auto 0 auto;
|
| 54 |
+
padding: 12px 24px;
|
| 55 |
font-size: 16px;
|
| 56 |
background-color: #4a90e2;
|
| 57 |
color: #fff;
|
| 58 |
border: none;
|
| 59 |
+
border-radius: 6px;
|
| 60 |
cursor: pointer;
|
| 61 |
+
transition: background-color 0.2s ease;
|
| 62 |
}
|
| 63 |
|
| 64 |
button:hover {
|
|
|
|
| 68 |
.output-section pre {
|
| 69 |
background-color: #f0f0f0;
|
| 70 |
padding: 15px;
|
| 71 |
+
border-radius: 6px;
|
| 72 |
+
min-height: 70px;
|
| 73 |
overflow-x: auto;
|
| 74 |
}
|
| 75 |
|
| 76 |
+
footer {
|
| 77 |
+
margin-top: 40px;
|
| 78 |
+
font-size: 14px;
|
| 79 |
+
color: #999;
|
| 80 |
}
|
ui/templates/index.html
CHANGED
|
@@ -2,25 +2,30 @@
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<title>Context-aware NLP Classification with MCP</title>
|
| 6 |
-
<link rel="stylesheet" href="/static/style.css?v=1.0.
|
| 7 |
</head>
|
| 8 |
<body>
|
| 9 |
<div class="container">
|
| 10 |
-
<h1>Context-aware NLP Classification Platform</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
<div class="input-section">
|
| 13 |
<label for="query">Enter text for classification:</label>
|
| 14 |
-
<textarea id="query" placeholder="e.g. Policy update regarding mandatory cybersecurity training
|
| 15 |
-
Consulting agreement with Company Z
|
| 16 |
-
Monthly invoice for consulting services, May 2025
|
| 17 |
<button onclick="sendQuery()">Submit</button>
|
| 18 |
</div>
|
| 19 |
|
| 20 |
-
<
|
| 21 |
-
<
|
| 22 |
-
|
| 23 |
-
</div>
|
| 24 |
</div>
|
| 25 |
|
| 26 |
<script src="/static/script.js"></script>
|
|
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<title>Context-aware NLP Classification Platform with MCP</title>
|
| 6 |
+
<link rel="stylesheet" href="/static/style.css?v=1.0.4">
|
| 7 |
</head>
|
| 8 |
<body>
|
| 9 |
<div class="container">
|
| 10 |
+
<h1>Context-aware NLP Classification Platform with MCP</h1>
|
| 11 |
+
<h3 class="subtitle">Multi-domain classification (finance, HR, legal).</h3>
|
| 12 |
+
|
| 13 |
+
<div class="output-section">
|
| 14 |
+
<h2>Prediction Result:</h2>
|
| 15 |
+
<pre id="result">Waiting for input...</pre>
|
| 16 |
+
</div>
|
| 17 |
|
| 18 |
<div class="input-section">
|
| 19 |
<label for="query">Enter text for classification:</label>
|
| 20 |
+
<textarea id="query" placeholder="e.g. Policy update regarding mandatory cybersecurity training
|
| 21 |
+
Consulting agreement with Company Z
|
| 22 |
+
Monthly invoice for consulting services, May 2025"></textarea>
|
| 23 |
<button onclick="sendQuery()">Submit</button>
|
| 24 |
</div>
|
| 25 |
|
| 26 |
+
<footer>
|
| 27 |
+
<p>Made with FastAPI & Python 3.13 — Context-aware NLP with MCP & TF-IDF.</p>
|
| 28 |
+
</footer>
|
|
|
|
| 29 |
</div>
|
| 30 |
|
| 31 |
<script src="/static/script.js"></script>
|