Spaces:
Running
Running
Update dl.py
Browse files
dl.py
CHANGED
@@ -144,7 +144,7 @@ def show_f_cont(repo,name,file,token):
|
|
144 |
html_text = '<html>\n<body>\n'
|
145 |
|
146 |
if (".png" or ".jpg" or ".gif" or ".webm" or ".mp4") in file:
|
147 |
-
html_text += f'<object data="https://huggingface.co/spaces/{repo}/{name}/
|
148 |
out_text = "Image File"
|
149 |
else:
|
150 |
r = requests.get(f'https://huggingface.co/spaces/{repo}/{name}/raw/main/{file}')
|
|
|
144 |
html_text = '<html>\n<body>\n'
|
145 |
|
146 |
if (".png" or ".jpg" or ".gif" or ".webm" or ".mp4") in file:
|
147 |
+
html_text += f'<object data="https://huggingface.co/spaces/{repo}/{name}/resolve/main/{file}"'
|
148 |
out_text = "Image File"
|
149 |
else:
|
150 |
r = requests.get(f'https://huggingface.co/spaces/{repo}/{name}/raw/main/{file}')
|