Skip to content

Commit

Permalink
fix language selection
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielchua committed Sep 30, 2024
1 parent 67bd675 commit 5deb312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def generate_podcast(
text = ""

# Check if the selected language is supported by MeloTTS when not using advanced audio
if not use_advanced_audio and language not in MELO_TTS_LANGUAGE_MAPPING:
if not use_advanced_audio and language in ['German', 'Hindi', 'Italian', 'Polish', 'Portuguese', 'Russian', 'Turkish']:
raise gr.Error(f"The selected language '{language}' is not supported without advanced audio generation. Please enable advanced audio generation or choose a supported language.")

# Check if at least one input is provided
Expand Down

0 comments on commit 5deb312

Please sign in to comment.