Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
|
@@ -150,18 +150,18 @@ def process_image(image1, image2):
|
|
| 150 |
elif mrz is not None:
|
| 151 |
html = ("<table>"
|
| 152 |
"<tr>"
|
| 153 |
-
"<th>Field</th>"
|
| 154 |
-
"<th>OCR</th>"
|
| 155 |
-
"<th>MRZ</th>"
|
| 156 |
"</tr>"
|
| 157 |
"{table_value}"
|
| 158 |
"</table>".format(table_value=table_value))
|
| 159 |
elif barcode is not None:
|
| 160 |
html = ("<table>"
|
| 161 |
"<tr>"
|
| 162 |
-
"<th>Field</th>"
|
| 163 |
-
"<th>OCR</th>"
|
| 164 |
-
"<th>Barcode</th>"
|
| 165 |
"</tr>"
|
| 166 |
"{table_value}"
|
| 167 |
"</table>".format(table_value=table_value))
|
|
|
|
| 150 |
elif mrz is not None:
|
| 151 |
html = ("<table>"
|
| 152 |
"<tr>"
|
| 153 |
+
"<th style=""width:20%"">Field</th>"
|
| 154 |
+
"<th style=""width:40%"">OCR</th>"
|
| 155 |
+
"<th style=""width:40%"">MRZ</th>"
|
| 156 |
"</tr>"
|
| 157 |
"{table_value}"
|
| 158 |
"</table>".format(table_value=table_value))
|
| 159 |
elif barcode is not None:
|
| 160 |
html = ("<table>"
|
| 161 |
"<tr>"
|
| 162 |
+
"<th style=""width:20%"">Field</th>"
|
| 163 |
+
"<th style=""width:40%"">OCR</th>"
|
| 164 |
+
"<th style=""width:40%"">Barcode</th>"
|
| 165 |
"</tr>"
|
| 166 |
"{table_value}"
|
| 167 |
"</table>".format(table_value=table_value))
|