Ishwar B commited on
Commit ·
5174196
1
Parent(s): ac61d04
Fix viewer image paths
Browse files
scripts/build_viewer_files.py
CHANGED
|
@@ -49,7 +49,7 @@ def _normalize_record(record: MutableMapping[str, object]) -> MutableMapping[str
|
|
| 49 |
image_path = record.get("image_path")
|
| 50 |
record["image_path"] = image_path
|
| 51 |
if image_path:
|
| 52 |
-
record["image"] = image_path
|
| 53 |
else:
|
| 54 |
record["image"] = None
|
| 55 |
return record
|
|
|
|
| 49 |
image_path = record.get("image_path")
|
| 50 |
record["image_path"] = image_path
|
| 51 |
if image_path:
|
| 52 |
+
record["image"] = str(Path(image_path))
|
| 53 |
else:
|
| 54 |
record["image"] = None
|
| 55 |
return record
|