wetdog commited on
Commit
8459a2f
1 Parent(s): bc05f02
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -63,11 +63,11 @@ global_phonemizer_rossellones = phonemizer.backend.EspeakBackend(
63
 
64
  def phonemiser(text, dialect):
65
  phonemizers = {"Central": global_phonemizer_central,
66
- "Valencian": global_phonemizer_valencia,
67
- "North-West": global_phonemizer_occidental,
68
  "Balear": global_phonemizer_balear,
69
- "Alguerés": global_phonemizer_algueres,
70
- "Rosellonés": global_phonemizer_rossellones}
71
 
72
  fonemitzador = phonemizers[dialect] #Set correct dialect for the phonemiser
73
  # synthesize
@@ -120,7 +120,7 @@ with gr.Blocks(theme=theme) as app:
120
  lines=4
121
  )
122
 
123
- dialect = gr.Dropdown(label="Dialect", choices=["Central", "Valencian", "North-West", "Balear", "Alguerés", "Rosellonés"], value="Central")
124
  with gr.Row(variant="panel"):
125
  clear_btn = gr.Button(
126
  "Clean",
@@ -139,8 +139,8 @@ with gr.Blocks(theme=theme) as app:
139
  label="Examples",
140
  examples=[
141
  ["Les coses importants són les que no ho semblen.", "Central"],
142
- ["Les coses importants són les que no ho semblen.", "Valencian",],
143
- ["Les coses importants són les que no ho semblen.", "North-West",],
144
  ["Les coses importants són les que no ho semblen.","Balear"],
145
  ],
146
  inputs=[input_, dialect],
 
63
 
64
  def phonemiser(text, dialect):
65
  phonemizers = {"Central": global_phonemizer_central,
66
+ "Valencia": global_phonemizer_valencia,
67
+ "Occidental": global_phonemizer_occidental,
68
  "Balear": global_phonemizer_balear,
69
+ "Alguerès": global_phonemizer_algueres,
70
+ "Rosellonès": global_phonemizer_rossellones}
71
 
72
  fonemitzador = phonemizers[dialect] #Set correct dialect for the phonemiser
73
  # synthesize
 
120
  lines=4
121
  )
122
 
123
+ dialect = gr.Dropdown(label="Dialect", choices=["Central", "Valencia", "Occidental", "Balear", "Alguerès", "Rosellonès"], value="Central")
124
  with gr.Row(variant="panel"):
125
  clear_btn = gr.Button(
126
  "Clean",
 
139
  label="Examples",
140
  examples=[
141
  ["Les coses importants són les que no ho semblen.", "Central"],
142
+ ["Les coses importants són les que no ho semblen.", "Valencia",],
143
+ ["Les coses importants són les que no ho semblen.", "Occidental",],
144
  ["Les coses importants són les que no ho semblen.","Balear"],
145
  ],
146
  inputs=[input_, dialect],