Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def modelspeech(text,name_model):
|
|
35 |
with torch.no_grad():
|
36 |
wav = model(input_ids=inputs["input_ids"].cuda()).waveform.cpu().numpy().reshape(-1)#.detach()
|
37 |
|
38 |
-
return model.config.sampling_rate
|
39 |
|
40 |
model_choices = gr.Dropdown(
|
41 |
choices=[
|
|
|
35 |
with torch.no_grad():
|
36 |
wav = model(input_ids=inputs["input_ids"].cuda()).waveform.cpu().numpy().reshape(-1)#.detach()
|
37 |
|
38 |
+
return model.config.sampling_rate,wav#remove_noise_nr(wav)
|
39 |
|
40 |
model_choices = gr.Dropdown(
|
41 |
choices=[
|