Spaces:
Paused
Paused
Update dl.py
Browse files
dl.py
CHANGED
|
@@ -59,6 +59,10 @@ def show_f(repo,name,token):
|
|
| 59 |
print(f_name)
|
| 60 |
|
| 61 |
else:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
pass
|
| 63 |
r = requests.get(f'https://huggingface.co/spaces/{repo}/{name}/raw/main/{d_app}')
|
| 64 |
print(d_app)
|
|
|
|
| 59 |
print(f_name)
|
| 60 |
|
| 61 |
else:
|
| 62 |
+
|
| 63 |
+
sf=d_app.split(".",1)[1]
|
| 64 |
+
pf=d_app.split(".",1)[0]
|
| 65 |
+
f_name=f'{pf}.{sf}'
|
| 66 |
pass
|
| 67 |
r = requests.get(f'https://huggingface.co/spaces/{repo}/{name}/raw/main/{d_app}')
|
| 68 |
print(d_app)
|