Omnibus commited on
Commit
f2df184
1 Parent(s): a8d228b

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +2 -2
dl.py CHANGED
@@ -137,7 +137,7 @@ def show_f2(repo,name,token):
137
 
138
 
139
  def show_f_cont(repo,name,file,token):
140
- html_text = '<html>\n<body>\n'
141
 
142
  if (".png" or ".jpg" or ".gif" or ".webm" or ".mp4") in file:
143
  html_text += f'<object data="https://huggingface.co/spaces/{repo}/{name}/resolve/main/{file}"'
@@ -147,7 +147,7 @@ def show_f_cont(repo,name,file,token):
147
  text=r.text
148
  html_text += f'<pre>{text}</pre>\n'
149
  out_text = r.text
150
- html_text += '</body>\n</html>'
151
  return(html_text,out_text)
152
 
153
 
 
137
 
138
 
139
  def show_f_cont(repo,name,file,token):
140
+ html_text = '<html>\n<body>\n<div>\n'
141
 
142
  if (".png" or ".jpg" or ".gif" or ".webm" or ".mp4") in file:
143
  html_text += f'<object data="https://huggingface.co/spaces/{repo}/{name}/resolve/main/{file}"'
 
147
  text=r.text
148
  html_text += f'<pre>{text}</pre>\n'
149
  out_text = r.text
150
+ html_text += '</div>\n</body>\n</html>'
151
  return(html_text,out_text)
152
 
153