Spaces:
Sleeping
Sleeping
ASG Models
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def modelspeech(text):
|
|
93 |
|
94 |
wav = model_vits(input_ids=inputs["input_ids"]).waveform.cpu().numpy().reshape(-1)
|
95 |
# display(Audio(wav, rate=model.config.sampling_rate))
|
96 |
-
return
|
97 |
|
98 |
import re
|
99 |
def clean_text(text):
|
|
|
93 |
|
94 |
wav = model_vits(input_ids=inputs["input_ids"]).waveform.cpu().numpy().reshape(-1)
|
95 |
# display(Audio(wav, rate=model.config.sampling_rate))
|
96 |
+
return model_vits.config.sampling_rate,wav#remove_noise_nr(wav)
|
97 |
|
98 |
import re
|
99 |
def clean_text(text):
|