Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def generate_audio(text, model_id, language):
|
|
71 |
|
72 |
if pipe_dict["language"] != language:
|
73 |
gr.Warning(f"Language has changed - loading new default model: {default_model_per_language[language]}")
|
74 |
-
pipe_dict["language"]
|
75 |
pipe_dict["original_pipe"] = pipeline("text-to-speech", model=default_model_per_language[language], device=0)
|
76 |
|
77 |
if pipe_dict["current_model"] != model_id:
|
|
|
71 |
|
72 |
if pipe_dict["language"] != language:
|
73 |
gr.Warning(f"Language has changed - loading new default model: {default_model_per_language[language]}")
|
74 |
+
pipe_dict["language"] = language
|
75 |
pipe_dict["original_pipe"] = pipeline("text-to-speech", model=default_model_per_language[language], device=0)
|
76 |
|
77 |
if pipe_dict["current_model"] != model_id:
|