Update templates/home.html
Browse files- templates/home.html +12 -7
templates/home.html
CHANGED
|
@@ -21,9 +21,11 @@
|
|
| 21 |
</form>
|
| 22 |
{% if user_input %}
|
| 23 |
<h2 class="mt-5 text-center">Sentiment Analysis Results:</h2>
|
| 24 |
-
<
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
<thead>
|
| 28 |
<tr>
|
| 29 |
<th>Label</th>
|
|
@@ -31,14 +33,17 @@
|
|
| 31 |
</tr>
|
| 32 |
</thead>
|
| 33 |
<tbody>
|
| 34 |
-
{% for
|
| 35 |
-
|
| 36 |
-
<
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
{% endfor %}
|
| 40 |
</tbody>
|
| 41 |
</table>
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
{% endif %}
|
|
|
|
| 21 |
</form>
|
| 22 |
{% if user_input %}
|
| 23 |
<h2 class="mt-5 text-center">Sentiment Analysis Results:</h2>
|
| 24 |
+
<p class="mt-2 text-center">{{user_input}}</p>
|
| 25 |
|
| 26 |
+
<div class="col-md-6">
|
| 27 |
+
|
| 28 |
+
<table class="table ">
|
| 29 |
<thead>
|
| 30 |
<tr>
|
| 31 |
<th>Label</th>
|
|
|
|
| 33 |
</tr>
|
| 34 |
</thead>
|
| 35 |
<tbody>
|
| 36 |
+
{% for items in response %}
|
| 37 |
+
{% for item in items %}
|
| 38 |
+
<tr>
|
| 39 |
+
<td class="text-capitalize">{{ item.label }}</td>
|
| 40 |
+
<td>{{ item.score }}</td>
|
| 41 |
+
</tr>
|
| 42 |
+
{% endfor %}
|
| 43 |
{% endfor %}
|
| 44 |
</tbody>
|
| 45 |
</table>
|
| 46 |
+
</div>
|
| 47 |
|
| 48 |
|
| 49 |
{% endif %}
|