Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|