Plachta commited on
Commit
b50beb1
1 Parent(s): 4ff2b18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -101,6 +101,8 @@ def to_symbol_fn(is_symbol_input, input_text, temp_text):
101
 
102
  def infer(text_raw, character, language, duration, noise_scale, noise_scale_w, is_symbol):
103
  # check character & duraction parameter
 
 
104
  if language not in languages:
105
  print("Error: No such language\n")
106
  return "Error: No such language", None, None, None
 
101
 
102
  def infer(text_raw, character, language, duration, noise_scale, noise_scale_w, is_symbol):
103
  # check character & duraction parameter
104
+ # remove \n
105
+ text_raw = text_raw.replace("\n", "")
106
  if language not in languages:
107
  print("Error: No such language\n")
108
  return "Error: No such language", None, None, None