Alidr79 commited on
Commit
81442b6
1 Parent(s): 09fa646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def tts_fn(slider_value, input_text):
123
  inputs = processor(text = text, return_tensors="pt")
124
 
125
  with torch.no_grad():
126
- spectrogram = model.generate_speech(inputs["input_ids"], speaker_embedding, minlenratio = 2, maxlenratio = 4, threshold = 0.3)
127
 
128
  with torch.no_grad():
129
  speech = vocoder(spectrogram)
 
123
  inputs = processor(text = text, return_tensors="pt")
124
 
125
  with torch.no_grad():
126
+ spectrogram = model.generate_speech(inputs["input_ids"], speaker_embedding, minlenratio = 2, maxlenratio = 4, threshold = 0.45)
127
 
128
  with torch.no_grad():
129
  speech = vocoder(spectrogram)