Omnibus commited on
Commit
294d631
·
1 Parent(s): 269ba81

Update player.py

Browse files
Files changed (1) hide show
  1. player.py +6 -5
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
- 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
-
 
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)