pkufool commited on
Commit
fe6ed9e
1 Parent(s): 48d0e71

Update update-cuda-html.py

Browse files

Using hf-mirror for user from China mainland.

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__":