Omnibus commited on
Commit
53eca1a
1 Parent(s): be627fc

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +1 -1
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}/raw/main/{file}"'
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}')