Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def tts_fn(slider_value, input_text):
|
|
126 |
inputs = processor(text = text, return_tensors="pt")
|
127 |
|
128 |
with torch.no_grad():
|
129 |
-
spectrogram = model.generate_speech(inputs["input_ids"], speaker_embedding, minlenratio = 2, maxlenratio = 4, threshold = 0.
|
130 |
|
131 |
with torch.no_grad():
|
132 |
speech = vocoder(spectrogram)
|
|
|
126 |
inputs = processor(text = text, return_tensors="pt")
|
127 |
|
128 |
with torch.no_grad():
|
129 |
+
spectrogram = model.generate_speech(inputs["input_ids"], speaker_embedding, minlenratio = 2, maxlenratio = 4, threshold = 0.3)
|
130 |
|
131 |
with torch.no_grad():
|
132 |
speech = vocoder(spectrogram)
|