csukuangfj commited on
Commit
0a30a52
1 Parent(s): 0b003dd

small fixes

Browse files
generate-asr-2pass.py CHANGED
@@ -181,8 +181,6 @@ see https://www.tablesgenerator.com/html_tables#
181
  print(content, file=f)
182
  for x in files:
183
  name = x.rsplit("/", maxsplit=1)[-1]
184
- if "?download" in name:
185
- name = name.split("?download")[0]
186
  print(f'<a href="{x}" />{name}<br/>', file=f)
187
 
188
 
@@ -194,7 +192,7 @@ def main():
194
  apk2 = []
195
  for a in apk:
196
  a = a.replace("huggingface.co", "hf-mirror.com")
197
- a += "?download=true"
198
  apk2.append(a)
199
 
200
  to_file("./apk-asr-2pass-cn.html", apk2)
 
181
  print(content, file=f)
182
  for x in files:
183
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
184
  print(f'<a href="{x}" />{name}<br/>', file=f)
185
 
186
 
 
192
  apk2 = []
193
  for a in apk:
194
  a = a.replace("huggingface.co", "hf-mirror.com")
195
+ a = a.replace("resolve", "blob")
196
  apk2.append(a)
197
 
198
  to_file("./apk-asr-2pass-cn.html", apk2)
generate-asr.py CHANGED
@@ -155,8 +155,6 @@ see https://www.tablesgenerator.com/html_tables#
155
  print(content, file=f)
156
  for x in files:
157
  name = x.rsplit("/", maxsplit=1)[-1]
158
- if "?download" in name:
159
- name = name.split("?download")[0]
160
  print(f'<a href="{x}" />{name}<br/>', file=f)
161
 
162
 
@@ -168,7 +166,7 @@ def main():
168
  apk2 = []
169
  for a in apk:
170
  a = a.replace("huggingface.co", "hf-mirror.com")
171
- a += "?download=true"
172
  apk2.append(a)
173
 
174
  to_file("./apk-asr-cn.html", apk2)
 
155
  print(content, file=f)
156
  for x in files:
157
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
158
  print(f'<a href="{x}" />{name}<br/>', file=f)
159
 
160
 
 
166
  apk2 = []
167
  for a in apk:
168
  a = a.replace("huggingface.co", "hf-mirror.com")
169
+ a = a.replace("resolve", "blob")
170
  apk2.append(a)
171
 
172
  to_file("./apk-asr-cn.html", apk2)
generate-audio-tagging-wearos.py CHANGED
@@ -109,8 +109,6 @@ For APKs running on Android phones, please see
109
  print(content, file=f)
110
  for x in files:
111
  name = x.rsplit("/", maxsplit=1)[-1]
112
- if "?download" in name:
113
- name = name.split("?download")[0]
114
  print(f'<a href="{x}" />{name}<br/>', file=f)
115
 
116
 
@@ -122,7 +120,7 @@ def main():
122
  apk2 = []
123
  for a in apk:
124
  a = a.replace("huggingface.co", "hf-mirror.com")
125
- a += "?download=true"
126
  apk2.append(a)
127
 
128
  to_file("./apk-audio-tagging-wearos-cn.html", apk2)
 
109
  print(content, file=f)
110
  for x in files:
111
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
112
  print(f'<a href="{x}" />{name}<br/>', file=f)
113
 
114
 
 
120
  apk2 = []
121
  for a in apk:
122
  a = a.replace("huggingface.co", "hf-mirror.com")
123
+ a = a.replace("resolve", "blob")
124
  apk2.append(a)
125
 
126
  to_file("./apk-audio-tagging-wearos-cn.html", apk2)
generate-audio-tagging.py CHANGED
@@ -110,8 +110,6 @@ For APKs running on Android wathces with WearOS, please see
110
  print(content, file=f)
111
  for x in files:
112
  name = x.rsplit("/", maxsplit=1)[-1]
113
- if "?download" in name:
114
- name = name.split("?download")[0]
115
  print(f'<a href="{x}" />{name}<br/>', file=f)
116
 
117
 
@@ -123,7 +121,7 @@ def main():
123
  apk2 = []
124
  for a in apk:
125
  a = a.replace("huggingface.co", "hf-mirror.com")
126
- a += "?download=true"
127
  apk2.append(a)
128
 
129
  to_file("./apk-audio-tagging-cn.html", apk2)
 
110
  print(content, file=f)
111
  for x in files:
112
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
113
  print(f'<a href="{x}" />{name}<br/>', file=f)
114
 
115
 
 
121
  apk2 = []
122
  for a in apk:
123
  a = a.replace("huggingface.co", "hf-mirror.com")
124
+ a = a.replace("resolve", "blob")
125
  apk2.append(a)
126
 
127
  to_file("./apk-audio-tagging-cn.html", apk2)
generate-kws.py CHANGED
@@ -138,8 +138,6 @@ see https://www.tablesgenerator.com/html_tables#
138
  print(content, file=f)
139
  for x in files:
140
  name = x.rsplit("/", maxsplit=1)[-1]
141
- if "?download" in name:
142
- name = name.split("?download")[0]
143
  print(f'<a href="{x}" />{name}<br/>', file=f)
144
 
145
 
@@ -151,7 +149,7 @@ def main():
151
  apk2 = []
152
  for a in apk:
153
  a = a.replace("huggingface.co", "hf-mirror.com")
154
- a += "?download=true"
155
  apk2.append(a)
156
 
157
  to_file("./apk-kws-cn.html", apk2)
 
138
  print(content, file=f)
139
  for x in files:
140
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
141
  print(f'<a href="{x}" />{name}<br/>', file=f)
142
 
143
 
 
149
  apk2 = []
150
  for a in apk:
151
  a = a.replace("huggingface.co", "hf-mirror.com")
152
+ a = a.replace("resolve", "blob")
153
  apk2.append(a)
154
 
155
  to_file("./apk-kws-cn.html", apk2)
generate-slid.py CHANGED
@@ -104,8 +104,6 @@ for more information.
104
  print(content, file=f)
105
  for x in files:
106
  name = x.rsplit("/", maxsplit=1)[-1]
107
- if "?download" in name:
108
- name = name.split("?download")[0]
109
  print(f'<a href="{x}" />{name}<br/>', file=f)
110
 
111
 
@@ -117,7 +115,7 @@ def main():
117
  apk2 = []
118
  for a in apk:
119
  a = a.replace("huggingface.co", "hf-mirror.com")
120
- a += "?download=true"
121
  apk2.append(a)
122
 
123
  to_file("./apk-slid-cn.html", apk2)
 
104
  print(content, file=f)
105
  for x in files:
106
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
107
  print(f'<a href="{x}" />{name}<br/>', file=f)
108
 
109
 
 
115
  apk2 = []
116
  for a in apk:
117
  a = a.replace("huggingface.co", "hf-mirror.com")
118
+ a = a.replace("resolve", "blob")
119
  apk2.append(a)
120
 
121
  to_file("./apk-slid-cn.html", apk2)
generate-speaker-identification.py CHANGED
@@ -114,8 +114,6 @@ You can download all supported models from
114
  print(content, file=f)
115
  for x in files:
116
  name = x.rsplit("/", maxsplit=1)[-1]
117
- if "?download" in name:
118
- name = name.split("?download")[0]
119
  print(f'<a href="{x}" />{name}<br/>', file=f)
120
 
121
 
@@ -127,7 +125,7 @@ def main():
127
  apk2 = []
128
  for a in apk:
129
  a = a.replace("huggingface.co", "hf-mirror.com")
130
- a += "?download=true"
131
  apk2.append(a)
132
 
133
  to_file("./apk-speaker-identification-cn.html", apk2)
 
114
  print(content, file=f)
115
  for x in files:
116
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
117
  print(f'<a href="{x}" />{name}<br/>', file=f)
118
 
119
 
 
125
  apk2 = []
126
  for a in apk:
127
  a = a.replace("huggingface.co", "hf-mirror.com")
128
+ a = a.replace("resolve", "blob")
129
  apk2.append(a)
130
 
131
  to_file("./apk-speaker-identification-cn.html", apk2)
generate-tts-engine.py CHANGED
@@ -125,8 +125,6 @@ at
125
  print(content, file=f)
126
  for x in files:
127
  name = x.rsplit("/", maxsplit=1)[-1]
128
- if "?download" in name:
129
- name = name.split("?download")[0]
130
  print(f'<a href="{x}" />{name}<br/>', file=f)
131
 
132
 
@@ -139,7 +137,7 @@ def main():
139
  apk2 = []
140
  for a in apk:
141
  a = a.replace("huggingface.co", "hf-mirror.com")
142
- a += "?download=true"
143
  apk2.append(a)
144
 
145
  to_file("./apk-engine-cn.html", apk2)
 
125
  print(content, file=f)
126
  for x in files:
127
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
128
  print(f'<a href="{x}" />{name}<br/>', file=f)
129
 
130
 
 
137
  apk2 = []
138
  for a in apk:
139
  a = a.replace("huggingface.co", "hf-mirror.com")
140
+ a = a.replace("resolve", "blob")
141
  apk2.append(a)
142
 
143
  to_file("./apk-engine-cn.html", apk2)
generate-tts.py CHANGED
@@ -124,8 +124,6 @@ at
124
  print(content, file=f)
125
  for x in files:
126
  name = x.rsplit("/", maxsplit=1)[-1]
127
- if "?download" in name:
128
- name = name.split("?download")[0]
129
  print(f'<a href="{x}" />{name}<br/>', file=f)
130
 
131
 
@@ -138,7 +136,7 @@ def main():
138
  apk2 = []
139
  for a in apk:
140
  a = a.replace("huggingface.co", "hf-mirror.com")
141
- a += "?download=true"
142
  apk2.append(a)
143
 
144
  to_file("./apk-cn.html", apk2)
 
124
  print(content, file=f)
125
  for x in files:
126
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
127
  print(f'<a href="{x}" />{name}<br/>', file=f)
128
 
129
 
 
136
  apk2 = []
137
  for a in apk:
138
  a = a.replace("huggingface.co", "hf-mirror.com")
139
+ a = a.replace("resolve", "blob")
140
  apk2.append(a)
141
 
142
  to_file("./apk-cn.html", apk2)
generate-vad-asr.py CHANGED
@@ -149,8 +149,6 @@ see https://www.tablesgenerator.com/html_tables#
149
  print(content, file=f)
150
  for x in files:
151
  name = x.rsplit("/", maxsplit=1)[-1]
152
- if "?download" in name:
153
- name = name.split("?download")[0]
154
  print(f'<a href="{x}" />{name}<br/>', file=f)
155
 
156
 
@@ -162,7 +160,7 @@ def main():
162
  apk2 = []
163
  for a in apk:
164
  a = a.replace("huggingface.co", "hf-mirror.com")
165
- a += "?download=true"
166
  apk2.append(a)
167
 
168
  to_file("./apk-vad-asr-cn.html", apk2)
 
149
  print(content, file=f)
150
  for x in files:
151
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
152
  print(f'<a href="{x}" />{name}<br/>', file=f)
153
 
154
 
 
160
  apk2 = []
161
  for a in apk:
162
  a = a.replace("huggingface.co", "hf-mirror.com")
163
+ a = a.replace("resolve", "blob")
164
  apk2.append(a)
165
 
166
  to_file("./apk-vad-asr-cn.html", apk2)
generate-vad.py CHANGED
@@ -129,8 +129,6 @@ see https://www.tablesgenerator.com/html_tables#
129
  print(content, file=f)
130
  for x in files:
131
  name = x.rsplit("/", maxsplit=1)[-1]
132
- if "?download" in name:
133
- name = name.split("?download")[0]
134
  print(f'<a href="{x}" />{name}<br/>', file=f)
135
 
136
 
@@ -142,7 +140,7 @@ def main():
142
  apk2 = []
143
  for a in apk:
144
  a = a.replace("huggingface.co", "hf-mirror.com")
145
- a += "?download=true"
146
  apk2.append(a)
147
 
148
  to_file("./apk-vad-cn.html", apk2)
 
129
  print(content, file=f)
130
  for x in files:
131
  name = x.rsplit("/", maxsplit=1)[-1]
 
 
132
  print(f'<a href="{x}" />{name}<br/>', file=f)
133
 
134
 
 
140
  apk2 = []
141
  for a in apk:
142
  a = a.replace("huggingface.co", "hf-mirror.com")
143
+ a = a.replace("resolve", "blob")
144
  apk2.append(a)
145
 
146
  to_file("./apk-vad-cn.html", apk2)