ORI-Muchim commited on
Commit
ed5fdf5
1 Parent(s): c270a49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -53,6 +53,13 @@ def create_to_phoneme_fn(hps):
53
  return _clean_text(text, hps.data.text_cleaners) if text != "" else ""
54
 
55
  return to_phoneme_fn
 
 
 
 
 
 
 
56
 
57
 
58
  css = """
 
53
  return _clean_text(text, hps.data.text_cleaners) if text != "" else ""
54
 
55
  return to_phoneme_fn
56
+
57
+ def create_to_symbol_fn(hps):
58
+ def to_symbol_fn(is_symbol_input, input_text, temp_text):
59
+ return (_clean_text(input_text, hps.data.text_cleaners), input_text) if is_symbol_input \
60
+ else (temp_text, temp_text)
61
+
62
+ return to_symbol_fn
63
 
64
 
65
  css = """