Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ gdown.cached_download(
|
|
44 |
url="https://huggingface.co/datasets/XAI/PEEB-Data/resolve/main/data.zip?download=true",
|
45 |
path=zip_file_path,
|
46 |
quiet=False,
|
47 |
-
|
48 |
)
|
49 |
|
50 |
try:
|
@@ -62,6 +62,19 @@ except Exception as e:
|
|
62 |
|
63 |
print("Contents of the directory:", os.listdir("./"))
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
NUMBER_OF_IMAGES = 30
|
67 |
intro_screen = Image.open("./images/intro.jpg")
|
|
|
44 |
url="https://huggingface.co/datasets/XAI/PEEB-Data/resolve/main/data.zip?download=true",
|
45 |
path=zip_file_path,
|
46 |
quiet=False,
|
47 |
+
hash="md5:153c2a3a8bf77a075f8254e191009772",
|
48 |
)
|
49 |
|
50 |
try:
|
|
|
62 |
|
63 |
print("Contents of the directory:", os.listdir("./"))
|
64 |
|
65 |
+
# Show the content of data folder as a tree
|
66 |
+
print("Contents of the data folder:")
|
67 |
+
for root, dirs, files in os.walk("./dogs"):
|
68 |
+
level = root.replace("./data", "").count(os.sep)
|
69 |
+
indent = " " * 4 * (level)
|
70 |
+
print(f"{indent}{os.path.basename(root)}/")
|
71 |
+
subindent = " " * 4 * (level + 1)
|
72 |
+
for f in files:
|
73 |
+
# ignore .jpeg files
|
74 |
+
if not f.endswith(".jpeg"):
|
75 |
+
print(f"{subindent}{f}")
|
76 |
+
|
77 |
+
|
78 |
|
79 |
NUMBER_OF_IMAGES = 30
|
80 |
intro_screen = Image.open("./images/intro.jpg")
|