kumar9 commited on
Commit
888ecec
1 Parent(s): 29feeff

Update templates/home.html

Browse files
Files changed (1) hide show
  1. 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
- <h3 class="mt-5 text-center">{{user_input}}</h3>
25
 
26
- <table class="table table-bordered">
 
 
27
  <thead>
28
  <tr>
29
  <th>Label</th>
@@ -31,14 +33,17 @@
31
  </tr>
32
  </thead>
33
  <tbody>
34
- {% for item in response %}
35
- <tr>
36
- <td class="text-capitalize">{{ item.label }}</td>
37
- <td>{{ item.score }}</td>
38
- </tr>
 
 
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 %}