Spaces:
Sleeping
Sleeping
Update dl.py
Browse files
dl.py
CHANGED
@@ -124,7 +124,7 @@ def show_f_cont(repo,name,file,token):
|
|
124 |
else:
|
125 |
r = requests.get(f'https://huggingface.co/spaces/{repo}/{name}/raw/main/{file}')
|
126 |
text=r.text
|
127 |
-
html_text += f'<pre
|
128 |
out_text = r.text
|
129 |
html_text += '</div>\n</body>\n</html>'
|
130 |
return(html_text,out_text)
|
|
|
124 |
else:
|
125 |
r = requests.get(f'https://huggingface.co/spaces/{repo}/{name}/raw/main/{file}')
|
126 |
text=r.text
|
127 |
+
html_text += f'<pre style="text-wrap:pretty;">{text}</pre>\n'
|
128 |
out_text = r.text
|
129 |
html_text += '</div>\n</body>\n</html>'
|
130 |
return(html_text,out_text)
|