Spaces:
Sleeping
Sleeping
Update player.py
Browse files
player.py
CHANGED
@@ -15,8 +15,12 @@ def find_dataset(author=None):
|
|
15 |
#space_ea = space.id.split("/",1)[1]
|
16 |
spaces.append(f'{space.id}<br>')
|
17 |
out_html = f'{out_html}{space.id}<br>'
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
except Exception as e:
|
21 |
print(e)
|
22 |
#s_info=api.space_info(f'{name}/{space}',files_metadata=True)
|
|
|
15 |
#space_ea = space.id.split("/",1)[1]
|
16 |
spaces.append(f'{space.id}<br>')
|
17 |
out_html = f'{out_html}{space.id}<br>'
|
18 |
+
file_box = [info.path for info in list_files_info(f'{space.id}', repo_type="dataset")]
|
19 |
+
for file in file_box:
|
20 |
+
if file.startswith("prompt_"):
|
21 |
+
out_html=f'{out_html}{file}<br>'
|
22 |
+
#print([info.path for info in list_files_info(f'{space.id}', repo_type="dataset")])
|
23 |
+
#print(space.id)
|
24 |
except Exception as e:
|
25 |
print(e)
|
26 |
#s_info=api.space_info(f'{name}/{space}',files_metadata=True)
|