wasmdashai commited on
Commit
46b0be8
·
verified ·
1 Parent(s): 6b733ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def modelspeech(text,name_model):
133
  # with torch.no_grad():
134
  # wav = model(input_ids=inputs["input_ids"].cuda()).waveform.cpu().numpy().reshape(-1)#.detach()
135
 
136
- return model.config.sampling_rate,wav,remove_noise_nr(wav)
137
 
138
  model_choices = gr.Dropdown(
139
  choices=[
 
133
  # with torch.no_grad():
134
  # wav = model(input_ids=inputs["input_ids"].cuda()).waveform.cpu().numpy().reshape(-1)#.detach()
135
 
136
+ return (model.config.sampling_rate,wav),(model.config.sampling_rate,remove_noise_nr(wav))
137
 
138
  model_choices = gr.Dropdown(
139
  choices=[