dpc commited on
Commit
f1343f1
1 Parent(s): 50b082f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -162,7 +162,11 @@ def combine_wav(source_dir, stamp, lang):
162
 
163
 
164
  def mms_tts(Input_Text, lang_name="Burmese (mya)"):
165
- lang_code = lang_codes[lang_name]
 
 
 
 
166
 
167
  user_model = download(lang_code, "./data")
168
  tts = TTS(user_model)
 
162
 
163
 
164
  def mms_tts(Input_Text, lang_name="Burmese (mya)"):
165
+ # lang_code = lang_codes[lang_name]
166
+ try:
167
+ lang_code = lang_codes[lang_name]
168
+ except KeyError:
169
+ lang_code = "mya"
170
 
171
  user_model = download(lang_code, "./data")
172
  tts = TTS(user_model)