Spaces:
Sleeping
Sleeping
Manish Gupta commited on
Commit ·
238d0e4
1
Parent(s): a8949bc
Fixed a bug.
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def load_metadata_fn(comic_id: str):
|
|
| 63 |
for folder in list_current_dir(AWS_BUCKET, f"{comic_id}/"):
|
| 64 |
if "episode" in folder:
|
| 65 |
json_path = f"s3://{AWS_BUCKET}/{folder}episode.json"
|
| 66 |
-
idx = int(folder.split("/")[
|
| 67 |
episode_idx.append(idx)
|
| 68 |
data = eval(aws_utils.fetch_from_s3(source=json_path).decode("utf-8"))
|
| 69 |
comic_frames = []
|
|
|
|
| 63 |
for folder in list_current_dir(AWS_BUCKET, f"{comic_id}/"):
|
| 64 |
if "episode" in folder:
|
| 65 |
json_path = f"s3://{AWS_BUCKET}/{folder}episode.json"
|
| 66 |
+
idx = int(folder.split("/")[2].split("-")[-1])
|
| 67 |
episode_idx.append(idx)
|
| 68 |
data = eval(aws_utils.fetch_from_s3(source=json_path).decode("utf-8"))
|
| 69 |
comic_frames = []
|