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