Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,6 @@ async def main(
|
|
143 |
auto_play = play
|
144 |
audio = inferencing(model, config, 0, text_input, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
|
145 |
temp_dir = tempfile.mkdtemp()
|
146 |
-
play)
|
147 |
|
148 |
# Create a temporary directory to store the audio files
|
149 |
temp_dir = tempfile.mkdtemp()
|
@@ -208,18 +207,7 @@ async def main(
|
|
208 |
# display(speaker_selection)
|
209 |
|
210 |
|
211 |
-
|
212 |
-
|
213 |
-
if model is None:
|
214 |
-
if enhanced_accessibility:
|
215 |
-
playaudio("nomodel")
|
216 |
-
raise Exception(lan.translate(lang, "You have not loaded any model from the list!"))
|
217 |
-
text = text_input.value
|
218 |
-
if config["num_speakers"] > 1:
|
219 |
-
sid = 0
|
220 |
-
else:
|
221 |
-
sid = None
|
222 |
-
|
223 |
|
224 |
|
225 |
# Save the audio as a temporary WAV file
|
|
|
143 |
auto_play = play
|
144 |
audio = inferencing(model, config, 0, text_input, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
|
145 |
temp_dir = tempfile.mkdtemp()
|
|
|
146 |
|
147 |
# Create a temporary directory to store the audio files
|
148 |
temp_dir = tempfile.mkdtemp()
|
|
|
207 |
# display(speaker_selection)
|
208 |
|
209 |
|
210 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
|
212 |
|
213 |
# Save the audio as a temporary WAV file
|