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

Update update-cpu-html.py (#2)

Browse files

- Update update-cpu-html.py (7b11007a13562eead0aff135bd3cdeb1bbbc750b)


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

Files changed (1) hide show
  1. 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__":