Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ async def main(
|
|
178 |
# display(speaker_selection)
|
179 |
|
180 |
|
181 |
-
|
182 |
|
183 |
if model is None:
|
184 |
if enhanced_accessibility:
|
@@ -186,14 +186,16 @@ async def main(
|
|
186 |
raise Exception(lan.translate(lang, "You have not loaded any model from the list!"))
|
187 |
text = text_input.value
|
188 |
if config["num_speakers"] > 1:
|
189 |
-
sid =
|
190 |
else:
|
191 |
sid = None
|
|
|
|
|
192 |
rate = speed_slider.value
|
193 |
noise_scale = noise_scale_slider.value
|
194 |
noise_scale_w = noise_scale_w_slider.value
|
195 |
auto_play = play.value
|
196 |
-
audio = inferencing(model, config, sid,
|
197 |
temp_audio_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
|
198 |
audio.export(temp_audio_file.name, format="mp3")
|
199 |
|
|
|
178 |
# display(speaker_selection)
|
179 |
|
180 |
|
181 |
+
print("hello")
|
182 |
|
183 |
if model is None:
|
184 |
if enhanced_accessibility:
|
|
|
186 |
raise Exception(lan.translate(lang, "You have not loaded any model from the list!"))
|
187 |
text = text_input.value
|
188 |
if config["num_speakers"] > 1:
|
189 |
+
sid = 0
|
190 |
else:
|
191 |
sid = None
|
192 |
+
|
193 |
+
print("hello2")
|
194 |
rate = speed_slider.value
|
195 |
noise_scale = noise_scale_slider.value
|
196 |
noise_scale_w = noise_scale_w_slider.value
|
197 |
auto_play = play.value
|
198 |
+
audio = inferencing(model, config, sid, text_input.value, speed_slider.value, noise_scale_slider.value, noise_scale_w_slider, auto_play)
|
199 |
temp_audio_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
|
200 |
audio.export(temp_audio_file.name, format="mp3")
|
201 |
|