hexgrad commited on
Commit
2c56265
·
verified ·
1 Parent(s): 8fdc8fc

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -145,6 +145,7 @@ def tokenize(ps):
145
  # Starred voices are more stable
146
  CHOICES = {
147
  '🇺🇸 🚺 American Female ⭐': 'af',
 
148
  '🇺🇸 🚺 Alloy': 'af_alloy',
149
  '🇺🇸 🚺 Bella ⭐': 'af_bella',
150
  '🇺🇸 🚺 Jessica': 'af_jessica',
@@ -152,21 +153,29 @@ CHOICES = {
152
  '🇺🇸 🚺 Nova': 'af_nova',
153
  '🇺🇸 🚺 River': 'af_river',
154
  '🇺🇸 🚺 Sarah ⭐': 'af_sarah',
155
- '🇺🇸 🚺 Shimmer': 'af_shimmer',
156
- '🇺🇸 🚺 Sky': 'af_sky',
157
  '🇺🇸 🚹 Adam': 'am_adam',
158
  '🇺🇸 🚹 Echo': 'am_echo',
159
  '🇺🇸 🚹 Eric': 'am_eric',
160
  '🇺🇸 🚹 Liam': 'am_liam',
161
  '🇺🇸 🚹 Michael ⭐': 'am_michael',
162
  '🇺🇸 🚹 Onyx': 'am_onyx',
 
 
 
 
163
  '🇬🇧 🚺 Alice': 'bf_alice',
164
  '🇬🇧 🚺 Lily': 'bf_lily',
 
 
165
  '🇬🇧 🚹 Daniel': 'bm_daniel',
166
  '🇬🇧 🚹 Fable': 'bm_fable',
167
  '🇬🇧 🚹 George': 'bm_george',
168
  '🇬🇧 🚹 Lewis': 'bm_lewis',
169
- '🇯🇵 🚺 Japanese Female ⭐': 'jf_0',
 
 
 
170
  }
171
  VOICES = {device: {k: torch.load(os.path.join(snapshot, 'voicepacks', f'{k}.pt'), weights_only=True).to(device) for k in CHOICES.values()} for device in models}
172
 
 
145
  # Starred voices are more stable
146
  CHOICES = {
147
  '🇺🇸 🚺 American Female ⭐': 'af',
148
+ '🇺🇸 🚺 AF1 ⭐': 'af_1',
149
  '🇺🇸 🚺 Alloy': 'af_alloy',
150
  '🇺🇸 🚺 Bella ⭐': 'af_bella',
151
  '🇺🇸 🚺 Jessica': 'af_jessica',
 
153
  '🇺🇸 🚺 Nova': 'af_nova',
154
  '🇺🇸 🚺 River': 'af_river',
155
  '🇺🇸 🚺 Sarah ⭐': 'af_sarah',
156
+ '🇺🇸 🚺 Sky ⭐': 'af_sky',
 
157
  '🇺🇸 🚹 Adam': 'am_adam',
158
  '🇺🇸 🚹 Echo': 'am_echo',
159
  '🇺🇸 🚹 Eric': 'am_eric',
160
  '🇺🇸 🚹 Liam': 'am_liam',
161
  '🇺🇸 🚹 Michael ⭐': 'am_michael',
162
  '🇺🇸 🚹 Onyx': 'am_onyx',
163
+ '🇬🇧 🚺 British Female 0': 'bf_0',
164
+ '🇬🇧 🚺 British Female 1': 'bf_1',
165
+ '🇬🇧 🚺 British Female 2': 'bf_2',
166
+ '🇬🇧 🚺 British Female 3': 'bf_3',
167
  '🇬🇧 🚺 Alice': 'bf_alice',
168
  '🇬🇧 🚺 Lily': 'bf_lily',
169
+ '🇬🇧 🚹 British Male 0': 'bm_0',
170
+ '🇬🇧 🚹 British Male 1': 'bm_1',
171
  '🇬🇧 🚹 Daniel': 'bm_daniel',
172
  '🇬🇧 🚹 Fable': 'bm_fable',
173
  '🇬🇧 🚹 George': 'bm_george',
174
  '🇬🇧 🚹 Lewis': 'bm_lewis',
175
+ '🇯🇵 🚺 Japanese Female 0 ⭐': 'jf_0',
176
+ '🇯🇵 🚺 Japanese Female 1': 'jf_1',
177
+ '🇯🇵 🚺 Japanese Female 2': 'jf_2',
178
+ '🇯🇵 🚺 Japanese Female 3': 'jf_3',
179
  }
180
  VOICES = {device: {k: torch.load(os.path.join(snapshot, 'voicepacks', f'{k}.pt'), weights_only=True).to(device) for k in CHOICES.values()} for device in models}
181