gorkemgoknar commited on
Commit
e72a5e7
1 Parent(s): 39aecc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -286,7 +286,7 @@ def wave_header_chunk(frame_input=b"", channels=1, sample_width=2, sample_rate=2
286
  xtts_supported_languages=config.languages
287
  def detect_language(prompt):
288
  # Fast language autodetection
289
- if len(prompt)>15:
290
  language_predicted=langid.classify(prompt)[0].strip() # strip need as there is space at end!
291
  if language_predicted == "zh":
292
  #we use zh-cn on xtts
 
286
  xtts_supported_languages=config.languages
287
  def detect_language(prompt):
288
  # Fast language autodetection
289
+ if len(prompt)>13:
290
  language_predicted=langid.classify(prompt)[0].strip() # strip need as there is space at end!
291
  if language_predicted == "zh":
292
  #we use zh-cn on xtts