Spaces:
Sleeping
Sleeping
Update player.py
Browse files
player.py
CHANGED
@@ -25,11 +25,12 @@ def find_dataset(author=None):
|
|
25 |
print(prompt_file)
|
26 |
for vid_file in ai_tube_box:
|
27 |
print(vid_file)
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
33 |
|
34 |
#print([info.path for info in list_files_info(f'{space.id}', repo_type="dataset")])
|
35 |
#print(space.id)
|
|
|
25 |
print(prompt_file)
|
26 |
for vid_file in ai_tube_box:
|
27 |
print(vid_file)
|
28 |
+
try:
|
29 |
+
if vid_file.split("videos/",1)[1].split(".",1)[0] == prompt_file.split("prompt_",1)[1].split(".",1)[0]:
|
30 |
+
print("yes")
|
31 |
+
out_html=f'{out_html}<pre> + {vid_file}</pre>'
|
32 |
+
except Exception:
|
33 |
+
pass
|
34 |
|
35 |
#print([info.path for info in list_files_info(f'{space.id}', repo_type="dataset")])
|
36 |
#print(space.id)
|