darksakura commited on
Commit
2902726
1 Parent(s): a148559

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -151,7 +151,7 @@ def infer(text, sdp_ratio, noise_scale, noise_scale_w, length_scale, sid, langua
151
  def tts_fn(
152
  text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale,LongSentence,correct_language
153
  ):
154
- if correct_language = "Auto":
155
  correct_language = "JP" if is_japanese(text) else "ZH"
156
  if not LongSentence:
157
  with torch.no_grad():
 
151
  def tts_fn(
152
  text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale,LongSentence,correct_language
153
  ):
154
+ if correct_language == "Auto":
155
  correct_language = "JP" if is_japanese(text) else "ZH"
156
  if not LongSentence:
157
  with torch.no_grad():