Skip to content

Commit a41a5b0

Browse files
Add public.zip
1 parent bae6f7e commit a41a5b0

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎marimo_dashboard.py‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,15 @@ def binary_iou_score(gtruth_mask: np.ndarray, submission_mask: np.ndarray) -> fl
5454
ground_truths_path = public_folder_path / "Ground_Truths"
5555

5656
if "pyodide" in sys.modules:
57-
# Create the `public` folder
5857
if not public_folder_path.exists():
59-
os.mkdir(public_folder_path)
60-
61-
# Download and unzip the data from the repository
62-
zip_path = Path("public") / "data.zip"
63-
url = mo.notebook_location() / "public" / "data.zip"
58+
# Download and unzip the public folder from the repository
59+
zip_path = Path("public.zip")
60+
url = mo.notebook_location() / "public.zip"
6461
r = requests.get(str(url))
6562
r.raise_for_status()
6663
zip_path.write_bytes(r.content)
6764
with zipfile.ZipFile(zip_path, "r") as zf:
68-
zf.extractall(public_folder_path)
69-
zip_path.unlink(missing_ok=True) # Delete the zipped dataset
65+
zf.extractall()
7066

7167
print(f"Extracted data in: {public_folder_path}")
7268

‎public.zip‎

4.57 MB
Binary file not shown.

0 commit comments

Comments
 (0)