ayymen commited on
Commit
96fabd6
1 Parent(s): 15e7b85

Add placeholder

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,7 @@ my_examples = [
19
  ]
20
 
21
  my_inputs = [
22
- gr.Textbox(lines=5, label="Input Text"),
23
  gr.Audio(type="filepath", label="Speaker audio for voice cloning (optional)"),
24
  gr.Checkbox(label="Split Sentences (each sentence will be generated separately)", value=True)
25
  ]
@@ -40,6 +40,7 @@ def tts(text: str, speaker_wav: str = None, split_sentences: bool = True):
40
  text = text.replace("(", ",")
41
  text = text.replace(")", ",")
42
  text = text.replace(";", ",")
 
43
 
44
  with tempfile.NamedTemporaryFile(suffix = ".wav", delete = False) as fp:
45
  if speaker_wav:
 
19
  ]
20
 
21
  my_inputs = [
22
+ gr.Textbox(lines=5, label="Input Text", placeholder="The only available characters are: ⴰⴱⴳⴷⴹⴻⴼⴽⵀⵃⵄⵅⵇⵉⵊⵍⵎⵏⵓⵔⵕⵖⵙⵚⵛⵜⵟⵡⵢⵣⵥⵯ !,.:?"),
23
  gr.Audio(type="filepath", label="Speaker audio for voice cloning (optional)"),
24
  gr.Checkbox(label="Split Sentences (each sentence will be generated separately)", value=True)
25
  ]
 
40
  text = text.replace("(", ",")
41
  text = text.replace(")", ",")
42
  text = text.replace(";", ",")
43
+ text = text.replace("-", " ")
44
 
45
  with tempfile.NamedTemporaryFile(suffix = ".wav", delete = False) as fp:
46
  if speaker_wav: