csukuangfj pkufool commited on
Commit
2dc3650
1 Parent(s): f2410b8

Update update-cuda-html.py (#3)

Browse files

- Update update-cuda-html.py (fe6ed9e2245795cb48e1ce802078989d5d0098e5)


Co-authored-by: pkufool <pkufool@users.noreply.huggingface.co>

Files changed (1) hide show
  1. update-cuda-html.py +4 -0
update-cuda-html.py CHANGED
@@ -71,6 +71,10 @@ def main():
71
  with open(d / "source/cuda.html", "w") as f:
72
  for w in wheels:
73
  f.write(f'<a href="{w.url}">{w.full_name}</a><br/>\n')
 
 
 
 
74
 
75
 
76
  if __name__ == "__main__":
 
71
  with open(d / "source/cuda.html", "w") as f:
72
  for w in wheels:
73
  f.write(f'<a href="{w.url}">{w.full_name}</a><br/>\n')
74
+ with open(d / "source/cuda-cn.html", "w") as f:
75
+ for w in wheels:
76
+ url = w.url.replace("https://huggingface.co", "https://hf-mirror.com")
77
+ f.write(f'<a href="{url}">{w.full_name}</a><br/>\n')
78
 
79
 
80
  if __name__ == "__main__":