wasmdashai commited on
Commit
16ffd31
·
verified ·
1 Parent(s): 3a7e610

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-1000,wav#remove_noise_nr(wav)
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=[