Spaces:
Configuration error
Configuration error
Commit ·
9d2a4fc
1
Parent(s): fd2cd78
Nevermind it blew up again
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ import parselmouth
|
|
| 29 |
from parselmouth.praat import call
|
| 30 |
|
| 31 |
clip_completed = False
|
| 32 |
-
def render_audio(ckpt_temp_file, config_temp_file, audio_temp_file, title, title2, title3, choice,
|
| 33 |
logging.getLogger('numba').setLevel(logging.WARNING)
|
| 34 |
title = int(title)
|
| 35 |
title2 = int(title2)
|
|
@@ -48,8 +48,8 @@ def render_audio(ckpt_temp_file, config_temp_file, audio_temp_file, title, title
|
|
| 48 |
|
| 49 |
# Show the spinner and run the run_clip function inside the 'with' block
|
| 50 |
with st.spinner("Rendering Audio..."):
|
| 51 |
-
f0_tst, f0_pred, audio = run_clip(svc_model,file_path=wav_fn, key=key, acc=title2, use_crepe=choice, thre=0.05,
|
| 52 |
-
use_gt_mel=use_mel_as_base, add_noise_step=
|
| 53 |
##PRAAT
|
| 54 |
formant_shift_ratio_str = title3
|
| 55 |
formant_shift_ratio = float(formant_shift_ratio_str)
|
|
@@ -137,9 +137,9 @@ use_mel_as_base = col2.checkbox('Use Mel as Base', value=False, help='gt mel: En
|
|
| 137 |
noise_step = 600
|
| 138 |
# Show "Noise Step" input parameter when checkbox is checked
|
| 139 |
if use_mel_as_base:
|
| 140 |
-
|
| 141 |
else:
|
| 142 |
-
|
| 143 |
password = col2.text_input("Enter password", help='Password can be got by agreeing to TOS and getting allowed after validation, you can go to the TOS here:')
|
| 144 |
correct_password = os.environ.get("gatepassword")
|
| 145 |
###
|
|
|
|
| 29 |
from parselmouth.praat import call
|
| 30 |
|
| 31 |
clip_completed = False
|
| 32 |
+
def render_audio(ckpt_temp_file, config_temp_file, audio_temp_file, title, title2, title3, choice, noise_stepss, use_mel_as_base):
|
| 33 |
logging.getLogger('numba').setLevel(logging.WARNING)
|
| 34 |
title = int(title)
|
| 35 |
title2 = int(title2)
|
|
|
|
| 48 |
|
| 49 |
# Show the spinner and run the run_clip function inside the 'with' block
|
| 50 |
with st.spinner("Rendering Audio..."):
|
| 51 |
+
f0_tst, f0_pred, audio = run_clip(svc_model,file_path=wav_fn, key=key, acc=title2, use_crepe=choice, use_pe=False thre=0.05,
|
| 52 |
+
use_gt_mel=use_mel_as_base, add_noise_step=noise_stepss,project_name=project_name,out_path=wav_gen)
|
| 53 |
##PRAAT
|
| 54 |
formant_shift_ratio_str = title3
|
| 55 |
formant_shift_ratio = float(formant_shift_ratio_str)
|
|
|
|
| 137 |
noise_step = 600
|
| 138 |
# Show "Noise Step" input parameter when checkbox is checked
|
| 139 |
if use_mel_as_base:
|
| 140 |
+
noise_stepss = col2.number_input('Noise Step', value=600, min_value=1, max_value=1000, step=50)
|
| 141 |
else:
|
| 142 |
+
noise_stepss = 600
|
| 143 |
password = col2.text_input("Enter password", help='Password can be got by agreeing to TOS and getting allowed after validation, you can go to the TOS here:')
|
| 144 |
correct_password = os.environ.get("gatepassword")
|
| 145 |
###
|