Update update-cpu-html.py
#2
by
pkufool
- opened
- update-cpu-html.py +4 -0
update-cpu-html.py
CHANGED
|
@@ -76,6 +76,10 @@ def main():
|
|
| 76 |
with open(d / "source/cpu.html", "w") as f:
|
| 77 |
for w in wheels:
|
| 78 |
f.write(f'<a href="{w.url}">{w.full_name}</a><br/>\n')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|
|
|
|
| 76 |
with open(d / "source/cpu.html", "w") as f:
|
| 77 |
for w in wheels:
|
| 78 |
f.write(f'<a href="{w.url}">{w.full_name}</a><br/>\n')
|
| 79 |
+
with open(d / "source/cpu-cn.html", "w") as f:
|
| 80 |
+
for w in wheels:
|
| 81 |
+
url = w.url.replace("https://huggingface.co", "https://hf-mirror.com")
|
| 82 |
+
f.write(f'<a href="{url}">{w.full_name}</a><br/>\n')
|
| 83 |
|
| 84 |
|
| 85 |
if __name__ == "__main__":
|