Update templates/home.html
Browse files- templates/home.html +28 -2
templates/home.html
CHANGED
|
@@ -1,2 +1,28 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Sentiment Classification</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
<h1 class="text-center mb-3">Sentiment Classification</h1>
|
| 14 |
+
<form method="POST" class="row justify-content-center">
|
| 15 |
+
<div class="col-md-4">
|
| 16 |
+
<input type="text" name="user_input" class="form-control" placeholder="Enter your input...">
|
| 17 |
+
</div>
|
| 18 |
+
<div class="col-md-2 mt-3">
|
| 19 |
+
<button type="submit" class="btn btn-primary">Submit</button>
|
| 20 |
+
</div>
|
| 21 |
+
</form>
|
| 22 |
+
{% if user_input %}
|
| 23 |
+
<h2 class="mt-5 text-center">Response:</h2>
|
| 24 |
+
<p class="text-center">{{ response }}</p>
|
| 25 |
+
{% endif %}
|
| 26 |
+
</div>
|
| 27 |
+
</body>
|
| 28 |
+
</html>
|