Spaces:
Sleeping
Sleeping
Update player.py
Browse files
player.py
CHANGED
@@ -45,10 +45,10 @@ def load_vid(channel):
|
|
45 |
print (r.json())
|
46 |
if vid_file.endswith(".mp4"):
|
47 |
#<source src="https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/resolve/main/videos/{vid_file}" type="video/mp4">
|
48 |
-
|
49 |
out_html=f'''{out_html}
|
50 |
|
51 |
-
<video src="https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/
|
52 |
</video>'''
|
53 |
#uid = uuid.uuid4()
|
54 |
#file = open(f'{name}/{f_name}','wb')
|
|
|
45 |
print (r.json())
|
46 |
if vid_file.endswith(".mp4"):
|
47 |
#<source src="https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/resolve/main/videos/{vid_file}" type="video/mp4">
|
48 |
+
print(vid_file)
|
49 |
out_html=f'''{out_html}
|
50 |
|
51 |
+
<video src="https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/resolve/main/videos/{vid_file}" controls>
|
52 |
</video>'''
|
53 |
#uid = uuid.uuid4()
|
54 |
#file = open(f'{name}/{f_name}','wb')
|