csukuangfj commited on
Commit
45ff740
·
1 Parent(s): 91a6485
Files changed (1) hide show
  1. generate-vad-asr.py +4 -4
generate-vad-asr.py CHANGED
@@ -223,11 +223,11 @@ see https://www.tablesgenerator.com/html_tables#
223
  """
224
  if "-cn" not in filename:
225
  content += """
226
- For Chinese users, please <a href="./hap-vad-asr-cn.html">visit this address</a>,
227
  which replaces <a href="huggingface.co">huggingface.co</a> with <a href="hf-mirror.com">hf-mirror.com</a>
228
  <br/>
229
  <br/>
230
- 中国用户, 请访问<a href="./hap-vad-asr-cn.html">这个地址</a>
231
  <br/>
232
  <br/>
233
  """
@@ -241,7 +241,7 @@ see https://www.tablesgenerator.com/html_tables#
241
 
242
  def main():
243
  hap = get_all_files("hap", suffix=".hap")
244
- to_file("./hap-vad-asr.html", hap)
245
 
246
  # for Chinese users
247
  hap2 = []
@@ -250,7 +250,7 @@ def main():
250
  a = a.replace("resolve", "blob")
251
  hap2.append(a)
252
 
253
- to_file("./hap-vad-asr-cn.html", hap2)
254
 
255
 
256
  if __name__ == "__main__":
 
223
  """
224
  if "-cn" not in filename:
225
  content += """
226
+ For Chinese users, please <a href="./vad-asr-cn.html">visit this address</a>,
227
  which replaces <a href="huggingface.co">huggingface.co</a> with <a href="hf-mirror.com">hf-mirror.com</a>
228
  <br/>
229
  <br/>
230
+ 中国用户, 请访问<a href="./vad-asr-cn.html">这个地址</a>
231
  <br/>
232
  <br/>
233
  """
 
241
 
242
  def main():
243
  hap = get_all_files("hap", suffix=".hap")
244
+ to_file("./vad-asr.html", hap)
245
 
246
  # for Chinese users
247
  hap2 = []
 
250
  a = a.replace("resolve", "blob")
251
  hap2.append(a)
252
 
253
+ to_file("./vad-asr-cn.html", hap2)
254
 
255
 
256
  if __name__ == "__main__":