WebashalarForML commited on
Commit
b3d0b20
·
verified ·
1 Parent(s): 19cf25e

Update templates/result.html

Browse files
Files changed (1) hide show
  1. templates/result.html +27 -35
templates/result.html CHANGED
@@ -10,6 +10,7 @@
10
  <style>
11
  body {
12
  background-color: #1d2329;
 
13
  font-family: 'Arial', sans-serif;
14
  }
15
 
@@ -32,7 +33,7 @@
32
  flex: 1;
33
  padding: 20px;
34
  background-color: #1d2c38;
35
- border-left: 1px solid #ddd;
36
  border-radius: 10px;
37
  display: flex;
38
  justify-content: center;
@@ -40,9 +41,10 @@
40
  }
41
 
42
  .card {
 
43
  border: none;
44
  border-radius: 10px;
45
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
46
  margin-bottom: 20px;
47
  }
48
 
@@ -55,7 +57,8 @@
55
 
56
  .list-group-item {
57
  border: none;
58
- background-color: #f8f9fa;
 
59
  padding: 10px;
60
  }
61
 
@@ -67,32 +70,33 @@
67
  }
68
 
69
  .list-group-item strong {
70
- color: #343a40;
71
  }
72
 
73
  h2 {
74
  margin-bottom: 20px;
 
75
  }
76
 
77
  h3 {
78
  margin-top: 10px;
79
  margin-bottom: 10px;
80
  font-size: 1.25rem;
81
- color: #343a40;
82
  }
83
 
84
  pre {
85
- background-color: #f8f9fa;
86
  padding: 10px;
87
  border-radius: 5px;
88
  font-size: 1rem;
89
- color: #343a40;
90
  overflow-x: auto;
91
  }
92
 
93
  .card-footer {
94
  text-align: center;
95
- border-top: 1px solid #ddd;
96
  padding: 15px;
97
  }
98
 
@@ -125,17 +129,18 @@
125
 
126
  .emoji-high {
127
  color: #28a745;
128
- /* Green for high scores */
129
  }
130
 
131
  .emoji-medium {
132
  color: #ffc107;
133
- /* Yellow for medium scores */
134
  }
135
 
136
  .emoji-low {
137
  color: #dc3545;
138
- /* Red for low scores */
 
 
 
139
  }
140
  </style>
141
 
@@ -155,7 +160,6 @@
155
  <strong>Extracted Data:</strong>
156
  {% for filename, text in data.extracted_text.items() %}
157
  <h3>{{ filename }}:</h3>
158
- <!-- Display Image using Img[filename] -->
159
  <img src="{{ Img[filename] }}" alt="Processed Image" class="img-fluid mb-3"
160
  style="max-width: 100%; height: auto;" />
161
  <strong>Text:</strong>
@@ -167,9 +171,7 @@
167
  {% if data.name is iterable and data.name is not string %}
168
  <ul>
169
  {% for value in data.name %}
170
- <li>
171
- {{ value }}<br>
172
- </li>
173
  {% endfor %}
174
  </ul>
175
  {% else %}
@@ -181,9 +183,7 @@
181
  {% if data.Designation is iterable and data.Designation is not string %}
182
  <ul>
183
  {% for value in data.Designation %}
184
- <li>
185
- {{ value }}<br>
186
- </li>
187
  {% endfor %}
188
  </ul>
189
  {% else %}
@@ -195,9 +195,7 @@
195
  {% if data.contact_number is iterable and data.contact_number is not string %}
196
  <ul>
197
  {% for value in data.contact_number %}
198
- <li>
199
- {{ value }}<br>
200
- </li>
201
  {% endfor %}
202
  </ul>
203
  {% else %}
@@ -209,9 +207,7 @@
209
  {% if data.email is iterable and data.email is not string %}
210
  <ul>
211
  {% for value in data.email %}
212
- <li>
213
- {{ value }}<br>
214
- </li>
215
  {% endfor %}
216
  </ul>
217
  {% else %}
@@ -223,9 +219,7 @@
223
  {% if data.Location is iterable and data.Location is not string %}
224
  <ul>
225
  {% for value in data.Location %}
226
- <li>
227
- {{ value }}<br>
228
- </li>
229
  {% endfor %}
230
  </ul>
231
  {% else %}
@@ -237,9 +231,7 @@
237
  {% if data.Link is iterable and data.Link is not string %}
238
  <ul>
239
  {% for value in data.Link %}
240
- <li>
241
- {{ value }}<br>
242
- </li>
243
  {% endfor %}
244
  </ul>
245
  {% else %}
@@ -251,9 +243,7 @@
251
  {% if data.Company is iterable and data.Company is not string %}
252
  <ul>
253
  {% for value in data.Company %}
254
- <li>
255
- {{ value }}<br>
256
- </li>
257
  {% endfor %}
258
  </ul>
259
  {% else %}
@@ -261,7 +251,9 @@
261
  {% endif %}
262
  </li>
263
  </ul>
264
- <a href="{{ url_for('index') }}">Back to Upload</a>
 
 
265
  </div>
266
  </div>
267
  <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
@@ -269,4 +261,4 @@
269
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
270
  </body>
271
 
272
- </html>
 
10
  <style>
11
  body {
12
  background-color: #1d2329;
13
+ color: #e0e0e0;
14
  font-family: 'Arial', sans-serif;
15
  }
16
 
 
33
  flex: 1;
34
  padding: 20px;
35
  background-color: #1d2c38;
36
+ border-left: 1px solid #4e5d6c;
37
  border-radius: 10px;
38
  display: flex;
39
  justify-content: center;
 
41
  }
42
 
43
  .card {
44
+ background-color: #2a2f36;
45
  border: none;
46
  border-radius: 10px;
47
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
48
  margin-bottom: 20px;
49
  }
50
 
 
57
 
58
  .list-group-item {
59
  border: none;
60
+ background-color: #3a4149;
61
+ color: #e0e0e0;
62
  padding: 10px;
63
  }
64
 
 
70
  }
71
 
72
  .list-group-item strong {
73
+ color: #e0e0e0;
74
  }
75
 
76
  h2 {
77
  margin-bottom: 20px;
78
+ color: #e0e0e0;
79
  }
80
 
81
  h3 {
82
  margin-top: 10px;
83
  margin-bottom: 10px;
84
  font-size: 1.25rem;
85
+ color: #28a745;
86
  }
87
 
88
  pre {
89
+ background-color: #3a4149;
90
  padding: 10px;
91
  border-radius: 5px;
92
  font-size: 1rem;
93
+ color: #e0e0e0;
94
  overflow-x: auto;
95
  }
96
 
97
  .card-footer {
98
  text-align: center;
99
+ border-top: 1px solid #4e5d6c;
100
  padding: 15px;
101
  }
102
 
 
129
 
130
  .emoji-high {
131
  color: #28a745;
 
132
  }
133
 
134
  .emoji-medium {
135
  color: #ffc107;
 
136
  }
137
 
138
  .emoji-low {
139
  color: #dc3545;
140
+ }
141
+
142
+ a {
143
+ color: #007bff;
144
  }
145
  </style>
146
 
 
160
  <strong>Extracted Data:</strong>
161
  {% for filename, text in data.extracted_text.items() %}
162
  <h3>{{ filename }}:</h3>
 
163
  <img src="{{ Img[filename] }}" alt="Processed Image" class="img-fluid mb-3"
164
  style="max-width: 100%; height: auto;" />
165
  <strong>Text:</strong>
 
171
  {% if data.name is iterable and data.name is not string %}
172
  <ul>
173
  {% for value in data.name %}
174
+ <li>{{ value }}<br></li>
 
 
175
  {% endfor %}
176
  </ul>
177
  {% else %}
 
183
  {% if data.Designation is iterable and data.Designation is not string %}
184
  <ul>
185
  {% for value in data.Designation %}
186
+ <li>{{ value }}<br></li>
 
 
187
  {% endfor %}
188
  </ul>
189
  {% else %}
 
195
  {% if data.contact_number is iterable and data.contact_number is not string %}
196
  <ul>
197
  {% for value in data.contact_number %}
198
+ <li>{{ value }}<br></li>
 
 
199
  {% endfor %}
200
  </ul>
201
  {% else %}
 
207
  {% if data.email is iterable and data.email is not string %}
208
  <ul>
209
  {% for value in data.email %}
210
+ <li>{{ value }}<br></li>
 
 
211
  {% endfor %}
212
  </ul>
213
  {% else %}
 
219
  {% if data.Location is iterable and data.Location is not string %}
220
  <ul>
221
  {% for value in data.Location %}
222
+ <li>{{ value }}<br></li>
 
 
223
  {% endfor %}
224
  </ul>
225
  {% else %}
 
231
  {% if data.Link is iterable and data.Link is not string %}
232
  <ul>
233
  {% for value in data.Link %}
234
+ <li>{{ value }}<br></li>
 
 
235
  {% endfor %}
236
  </ul>
237
  {% else %}
 
243
  {% if data.Company is iterable and data.Company is not string %}
244
  <ul>
245
  {% for value in data.Company %}
246
+ <li>{{ value }}<br></li>
 
 
247
  {% endfor %}
248
  </ul>
249
  {% else %}
 
251
  {% endif %}
252
  </li>
253
  </ul>
254
+ <a href="{{ url_for('index') }}">
255
+ <button type="button" class="btn btn-primary">Back to Upload</button>
256
+ </a>
257
  </div>
258
  </div>
259
  <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
 
261
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
262
  </body>
263
 
264
+ </html>