Spaces:
Runtime error
Runtime error
Update templates/result.html
Browse files- templates/result.html +28 -12
templates/result.html
CHANGED
|
@@ -125,98 +125,114 @@
|
|
| 125 |
<div class="card">
|
| 126 |
<div class="card-body">
|
| 127 |
<div class="card">
|
| 128 |
-
<div class="card-body">
|
| 129 |
{% if data.extracted_text.items() %}
|
| 130 |
<h5 class="card-title">Extracted Image:</h5>
|
| 131 |
<ul>
|
| 132 |
{% for filename, text in data.extracted_text.items() %}
|
| 133 |
<li>{{ filename }}:</li>
|
| 134 |
<img src="{{ Img[filename] }}" alt="Processed Image" class="img-fluid" />
|
| 135 |
-
|
| 136 |
<li>{{ text }}</li>
|
| 137 |
{% endfor %}
|
| 138 |
</ul>
|
| 139 |
{% endif %}
|
| 140 |
</div>
|
| 141 |
</div>
|
| 142 |
-
|
| 143 |
{% if data.name and data.name is iterable and data.name is not string %}
|
| 144 |
<div class="card-body">
|
| 145 |
<h5 class="card-title">Name:</h5>
|
| 146 |
<ul>
|
| 147 |
{% for value in data.name %}
|
|
|
|
| 148 |
<li>{{ value }}</li>
|
|
|
|
| 149 |
{% endfor %}
|
| 150 |
</ul>
|
| 151 |
</div>
|
| 152 |
{% endif %}
|
| 153 |
-
|
| 154 |
-
{% if data.Designation and data.Designation is iterable and data.Designation is not string
|
|
|
|
| 155 |
<div class="card-body">
|
| 156 |
<h5 class="card-title">Designation:</h5>
|
| 157 |
<ul>
|
| 158 |
{% for value in data.Designation %}
|
|
|
|
| 159 |
<li>{{ value }}</li>
|
|
|
|
| 160 |
{% endfor %}
|
| 161 |
</ul>
|
| 162 |
</div>
|
| 163 |
{% endif %}
|
| 164 |
-
|
| 165 |
-
{% if data.contact_number and data.contact_number is iterable and data.contact_number is not
|
|
|
|
| 166 |
<div class="card-body">
|
| 167 |
<h5 class="card-title">Contact number:</h5>
|
| 168 |
<ul>
|
| 169 |
{% for value in data.contact_number %}
|
|
|
|
| 170 |
<li>{{ value }}</li>
|
|
|
|
| 171 |
{% endfor %}
|
| 172 |
</ul>
|
| 173 |
</div>
|
| 174 |
{% endif %}
|
| 175 |
-
|
| 176 |
{% if data.email and data.email is iterable and data.email is not string %}
|
| 177 |
<div class="card-body">
|
| 178 |
<h5 class="card-title">Email:</h5>
|
| 179 |
<ul>
|
| 180 |
{% for value in data.email %}
|
|
|
|
| 181 |
<li>{{ value }}</li>
|
|
|
|
| 182 |
{% endfor %}
|
| 183 |
</ul>
|
| 184 |
</div>
|
| 185 |
{% endif %}
|
| 186 |
-
|
| 187 |
{% if data.Location and data.Location is iterable and data.Location is not string %}
|
| 188 |
<div class="card-body">
|
| 189 |
<h5 class="card-title">Location:</h5>
|
| 190 |
<ul>
|
| 191 |
{% for value in data.Location %}
|
|
|
|
| 192 |
<li>{{ value }}</li>
|
|
|
|
| 193 |
{% endfor %}
|
| 194 |
</ul>
|
| 195 |
</div>
|
| 196 |
{% endif %}
|
| 197 |
-
|
| 198 |
{% if data.Link and data.Link is iterable and data.Link is not string %}
|
| 199 |
<div class="card-body">
|
| 200 |
<h5 class="card-title">Link:</h5>
|
| 201 |
<ul>
|
| 202 |
{% for value in data.Link %}
|
|
|
|
| 203 |
<li>{{ value }}</li>
|
|
|
|
| 204 |
{% endfor %}
|
| 205 |
</ul>
|
| 206 |
</div>
|
| 207 |
{% endif %}
|
| 208 |
-
|
| 209 |
{% if data.Company and data.Company is iterable and data.Company is not string %}
|
| 210 |
<div class="card-body">
|
| 211 |
<h5 class="card-title">Organisation:</h5>
|
| 212 |
<ul>
|
| 213 |
{% for value in data.Company %}
|
|
|
|
| 214 |
<li>{{ value }}</li>
|
|
|
|
| 215 |
{% endfor %}
|
| 216 |
</ul>
|
| 217 |
</div>
|
| 218 |
{% endif %}
|
| 219 |
-
|
| 220 |
</div>
|
| 221 |
</div>
|
| 222 |
</div>
|
|
|
|
| 125 |
<div class="card">
|
| 126 |
<div class="card-body">
|
| 127 |
<div class="card">
|
| 128 |
+
<div class="card-body">
|
| 129 |
{% if data.extracted_text.items() %}
|
| 130 |
<h5 class="card-title">Extracted Image:</h5>
|
| 131 |
<ul>
|
| 132 |
{% for filename, text in data.extracted_text.items() %}
|
| 133 |
<li>{{ filename }}:</li>
|
| 134 |
<img src="{{ Img[filename] }}" alt="Processed Image" class="img-fluid" />
|
| 135 |
+
<h5 class="card-title">Extracted Text:</h5>
|
| 136 |
<li>{{ text }}</li>
|
| 137 |
{% endfor %}
|
| 138 |
</ul>
|
| 139 |
{% endif %}
|
| 140 |
</div>
|
| 141 |
</div>
|
| 142 |
+
|
| 143 |
{% if data.name and data.name is iterable and data.name is not string %}
|
| 144 |
<div class="card-body">
|
| 145 |
<h5 class="card-title">Name:</h5>
|
| 146 |
<ul>
|
| 147 |
{% for value in data.name %}
|
| 148 |
+
{% if value|lower != 'Not found' %}
|
| 149 |
<li>{{ value }}</li>
|
| 150 |
+
{% endif %}
|
| 151 |
{% endfor %}
|
| 152 |
</ul>
|
| 153 |
</div>
|
| 154 |
{% endif %}
|
| 155 |
+
|
| 156 |
+
{% if data.Designation and data.Designation is iterable and data.Designation is not string
|
| 157 |
+
%}
|
| 158 |
<div class="card-body">
|
| 159 |
<h5 class="card-title">Designation:</h5>
|
| 160 |
<ul>
|
| 161 |
{% for value in data.Designation %}
|
| 162 |
+
{% if value|lower != 'Not found' %}
|
| 163 |
<li>{{ value }}</li>
|
| 164 |
+
{% endif %}
|
| 165 |
{% endfor %}
|
| 166 |
</ul>
|
| 167 |
</div>
|
| 168 |
{% endif %}
|
| 169 |
+
|
| 170 |
+
{% if data.contact_number and data.contact_number is iterable and data.contact_number is not
|
| 171 |
+
string %}
|
| 172 |
<div class="card-body">
|
| 173 |
<h5 class="card-title">Contact number:</h5>
|
| 174 |
<ul>
|
| 175 |
{% for value in data.contact_number %}
|
| 176 |
+
{% if value|lower != 'Not found' %}
|
| 177 |
<li>{{ value }}</li>
|
| 178 |
+
{% endif %}
|
| 179 |
{% endfor %}
|
| 180 |
</ul>
|
| 181 |
</div>
|
| 182 |
{% endif %}
|
| 183 |
+
|
| 184 |
{% if data.email and data.email is iterable and data.email is not string %}
|
| 185 |
<div class="card-body">
|
| 186 |
<h5 class="card-title">Email:</h5>
|
| 187 |
<ul>
|
| 188 |
{% for value in data.email %}
|
| 189 |
+
{% if value|lower != 'Not found' %}
|
| 190 |
<li>{{ value }}</li>
|
| 191 |
+
{% endif %}
|
| 192 |
{% endfor %}
|
| 193 |
</ul>
|
| 194 |
</div>
|
| 195 |
{% endif %}
|
| 196 |
+
|
| 197 |
{% if data.Location and data.Location is iterable and data.Location is not string %}
|
| 198 |
<div class="card-body">
|
| 199 |
<h5 class="card-title">Location:</h5>
|
| 200 |
<ul>
|
| 201 |
{% for value in data.Location %}
|
| 202 |
+
{% if value|lower != 'Not found' %}
|
| 203 |
<li>{{ value }}</li>
|
| 204 |
+
{% endif %}
|
| 205 |
{% endfor %}
|
| 206 |
</ul>
|
| 207 |
</div>
|
| 208 |
{% endif %}
|
| 209 |
+
|
| 210 |
{% if data.Link and data.Link is iterable and data.Link is not string %}
|
| 211 |
<div class="card-body">
|
| 212 |
<h5 class="card-title">Link:</h5>
|
| 213 |
<ul>
|
| 214 |
{% for value in data.Link %}
|
| 215 |
+
{% if value|lower != 'Not found' %}
|
| 216 |
<li>{{ value }}</li>
|
| 217 |
+
{% endif %}
|
| 218 |
{% endfor %}
|
| 219 |
</ul>
|
| 220 |
</div>
|
| 221 |
{% endif %}
|
| 222 |
+
|
| 223 |
{% if data.Company and data.Company is iterable and data.Company is not string %}
|
| 224 |
<div class="card-body">
|
| 225 |
<h5 class="card-title">Organisation:</h5>
|
| 226 |
<ul>
|
| 227 |
{% for value in data.Company %}
|
| 228 |
+
{% if value|lower != 'Not found' %}
|
| 229 |
<li>{{ value }}</li>
|
| 230 |
+
{% endif %}
|
| 231 |
{% endfor %}
|
| 232 |
</ul>
|
| 233 |
</div>
|
| 234 |
{% endif %}
|
| 235 |
+
|
| 236 |
</div>
|
| 237 |
</div>
|
| 238 |
</div>
|