Olivier-Truong commited on
Commit
cc0f0e5
1 Parent(s): 6506e59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -129,7 +129,7 @@ article = """
129
  examples = [
130
  [
131
  "Hello, World !, here is an example of light voice cloning. Try to upload your best audio samples quality",
132
- "en",
133
  "examples/female.wav",
134
  None,
135
  False,
@@ -137,7 +137,7 @@ examples = [
137
  ],
138
  [
139
  "Je suis un lycéen français de 17 ans, passioner par la Cyber-Sécuritée et les models d'IA.",
140
- "fr",
141
  "examples/female.wav",
142
  None,
143
  False,
@@ -145,7 +145,7 @@ examples = [
145
  ],
146
  [
147
  "Als ich sechs war, sah ich einmal ein wunderbares Bild",
148
- "de",
149
  "examples/female.wav",
150
  None,
151
  False,
@@ -153,7 +153,7 @@ examples = [
153
  ],
154
  [
155
  "Cuando tenía seis años, vi una vez una imagen magnífica",
156
- "es",
157
  "examples/female.wav",
158
  None,
159
  False,
@@ -161,7 +161,7 @@ examples = [
161
  ],
162
  [
163
  "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica",
164
- "pt",
165
  "examples/female.wav",
166
  None,
167
  False,
@@ -169,7 +169,7 @@ examples = [
169
  ],
170
  [
171
  "Kiedy miałem sześć lat, zobaczyłem pewnego razu wspaniały obrazek",
172
- "pl",
173
  "examples/female.wav",
174
  None,
175
  False,
@@ -177,7 +177,7 @@ examples = [
177
  ],
178
  [
179
  "Un tempo lontano, quando avevo sei anni, vidi un magnifico disegno",
180
- "it",
181
  "examples/female.wav",
182
  None,
183
  False,
@@ -185,7 +185,7 @@ examples = [
185
  ],
186
  [
187
  "Bir zamanlar, altı yaşındayken, muhteşem bir resim gördüm",
188
- "tr",
189
  "examples/female.wav",
190
  None,
191
  False,
@@ -193,7 +193,7 @@ examples = [
193
  ],
194
  [
195
  "Когда мне было шесть лет, я увидел однажды удивительную картинку",
196
- "ru",
197
  "examples/female.wav",
198
  None,
199
  False,
@@ -201,7 +201,7 @@ examples = [
201
  ],
202
  [
203
  "Toen ik een jaar of zes was, zag ik op een keer een prachtige plaat",
204
- "nl",
205
  "examples/female.wav",
206
  None,
207
  False,
@@ -209,7 +209,7 @@ examples = [
209
  ],
210
  [
211
  "Když mi bylo šest let, viděl jsem jednou nádherný obrázek",
212
- "cs",
213
  "examples/female.wav",
214
  None,
215
  False,
@@ -217,7 +217,7 @@ examples = [
217
  ],
218
  [
219
  "当我还只有六岁的时候, 看到了一副精彩的插画",
220
- "zh-cn",
221
  "examples/female.wav",
222
  None,
223
  False,
@@ -240,7 +240,7 @@ gr.Interface(
240
  info="Select an output language for the synthesised speech",
241
  choices=[
242
  ["Arabic", "ar"],
243
- ["Brazilian Portuguese", "pt"],
244
  ["Mandarin Chinese", "zh-cn"],
245
  ["Czech", "cs"],
246
  ["Dutch", "nl"],
@@ -281,5 +281,5 @@ gr.Interface(
281
  title=title,
282
  description=description,
283
  article=article,
284
- # examples=examples, # cause errors about False is not an audio
285
  ).queue().launch(debug=True)
 
129
  examples = [
130
  [
131
  "Hello, World !, here is an example of light voice cloning. Try to upload your best audio samples quality",
132
+ ["English", "en"],
133
  "examples/female.wav",
134
  None,
135
  False,
 
137
  ],
138
  [
139
  "Je suis un lycéen français de 17 ans, passioner par la Cyber-Sécuritée et les models d'IA.",
140
+ ["French", "fr"],
141
  "examples/female.wav",
142
  None,
143
  False,
 
145
  ],
146
  [
147
  "Als ich sechs war, sah ich einmal ein wunderbares Bild",
148
+ ["German", "de"],
149
  "examples/female.wav",
150
  None,
151
  False,
 
153
  ],
154
  [
155
  "Cuando tenía seis años, vi una vez una imagen magnífica",
156
+ ["Spanish", "es"],
157
  "examples/female.wav",
158
  None,
159
  False,
 
161
  ],
162
  [
163
  "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica",
164
+ ["Portuguese", "pt"],
165
  "examples/female.wav",
166
  None,
167
  False,
 
169
  ],
170
  [
171
  "Kiedy miałem sześć lat, zobaczyłem pewnego razu wspaniały obrazek",
172
+ ["Polish", "pl"],
173
  "examples/female.wav",
174
  None,
175
  False,
 
177
  ],
178
  [
179
  "Un tempo lontano, quando avevo sei anni, vidi un magnifico disegno",
180
+ ["Italian", "it"],
181
  "examples/female.wav",
182
  None,
183
  False,
 
185
  ],
186
  [
187
  "Bir zamanlar, altı yaşındayken, muhteşem bir resim gördüm",
188
+ ["Turkish", "tr"],
189
  "examples/female.wav",
190
  None,
191
  False,
 
193
  ],
194
  [
195
  "Когда мне было шесть лет, я увидел однажды удивительную картинку",
196
+ ["Russian", "ru"],
197
  "examples/female.wav",
198
  None,
199
  False,
 
201
  ],
202
  [
203
  "Toen ik een jaar of zes was, zag ik op een keer een prachtige plaat",
204
+ ["Dutch", "nl"],
205
  "examples/female.wav",
206
  None,
207
  False,
 
209
  ],
210
  [
211
  "Když mi bylo šest let, viděl jsem jednou nádherný obrázek",
212
+ ["Czech", "cs"],
213
  "examples/female.wav",
214
  None,
215
  False,
 
217
  ],
218
  [
219
  "当我还只有六岁的时候, 看到了一副精彩的插画",
220
+ ["Mandarin Chinese", "zh-cn"],
221
  "examples/female.wav",
222
  None,
223
  False,
 
240
  info="Select an output language for the synthesised speech",
241
  choices=[
242
  ["Arabic", "ar"],
243
+ ["Portuguese", "pt"],
244
  ["Mandarin Chinese", "zh-cn"],
245
  ["Czech", "cs"],
246
  ["Dutch", "nl"],
 
281
  title=title,
282
  description=description,
283
  article=article,
284
+ examples=examples, # cause errors about False is not an audio
285
  ).queue().launch(debug=True)