Spaces:
Sleeping
Sleeping
what is this file type
Browse files
app.py
CHANGED
@@ -28,7 +28,8 @@ def get_list_of_images():
|
|
28 |
# fs = hfh.HfFileSystem(token=os.environ.get("hf_token"))
|
29 |
# return fs.ls("datasets/aifred-smart-life-coach/capstone-images", detail=False, refresh=True)
|
30 |
api = hfh.HfApi()
|
31 |
-
files = api.list_repo_tree(repo_id="aifred-smart-life-coach/capstone-images", repo_type="dataset")
|
|
|
32 |
return files
|
33 |
|
34 |
|
|
|
28 |
# fs = hfh.HfFileSystem(token=os.environ.get("hf_token"))
|
29 |
# return fs.ls("datasets/aifred-smart-life-coach/capstone-images", detail=False, refresh=True)
|
30 |
api = hfh.HfApi()
|
31 |
+
files = api.list_repo_tree(repo_id="aifred-smart-life-coach/capstone-images", repo_type="dataset", recursive=True)
|
32 |
+
print(type(files[1]))
|
33 |
return files
|
34 |
|
35 |
|