Omnibus commited on
Commit
cf1f709
·
1 Parent(s): cbc14f5

Update player.py

Browse files
Files changed (1) hide show
  1. player.py +2 -1
player.py CHANGED
@@ -27,7 +27,7 @@ def find_dataset(author=None):
27
  print(prompt_slug)
28
  for vid_file in ai_tube_box:
29
  vid_slug=vid_file.split("videos/",1)[1].split(".",1)[0]
30
- #print(vid_file)
31
  try:
32
  if vid_file.endswith(".json"):
33
  r = requests.get(f'https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/raw/main/videos/{vid_slug}.json')
@@ -37,6 +37,7 @@ def find_dataset(author=None):
37
  #file = open(f'{name}/{f_name}','wb')
38
  #file.write(r.content)
39
  except Exception as e:
 
40
  pass
41
  try:
42
  if vid_slug == prompt_slug:
 
27
  print(prompt_slug)
28
  for vid_file in ai_tube_box:
29
  vid_slug=vid_file.split("videos/",1)[1].split(".",1)[0]
30
+ print(vid_slug)
31
  try:
32
  if vid_file.endswith(".json"):
33
  r = requests.get(f'https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/raw/main/videos/{vid_slug}.json')
 
37
  #file = open(f'{name}/{f_name}','wb')
38
  #file.write(r.content)
39
  except Exception as e:
40
+ print (f'error:: {e}')
41
  pass
42
  try:
43
  if vid_slug == prompt_slug: