Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -128,8 +128,7 @@ CHOICES = {
|
|
128 |
VOICES = {k: torch.load(os.path.join(snapshot, 'voices', f'{k}.pt'), weights_only=True).to(device) for k in CHOICES.values()}
|
129 |
def get_random_en_voice():
|
130 |
# Top 2 most stable voices in each category of (US/GB) and (F/M)
|
131 |
-
|
132 |
-
return random.choice(['af_0', 'af_bella', 'am_michael', 'bf_0', 'bf_2', 'bm_0', 'bm_1'])
|
133 |
|
134 |
np_log_99 = np.log(99)
|
135 |
def s_curve(p):
|
|
|
128 |
VOICES = {k: torch.load(os.path.join(snapshot, 'voices', f'{k}.pt'), weights_only=True).to(device) for k in CHOICES.values()}
|
129 |
def get_random_en_voice():
|
130 |
# Top 2 most stable voices in each category of (US/GB) and (F/M)
|
131 |
+
return random.choice(['af_0', 'af_bella', 'am_michael', 'am_adam', 'bf_0', 'bf_2', 'bm_0', 'bm_1'])
|
|
|
132 |
|
133 |
np_log_99 = np.log(99)
|
134 |
def s_curve(p):
|