Spaces:
Running
on
Zero
Running
on
Zero
txya900619
commited on
Commit
•
67a9388
1
Parent(s):
1bd0d83
feat: add examples
Browse files
app.py
CHANGED
@@ -214,6 +214,11 @@ with demo:
|
|
214 |
outputs=[speaker_drop_down, dialect_radio, use_default_emb_or_custom_radio],
|
215 |
)
|
216 |
|
|
|
|
|
|
|
|
|
|
|
217 |
gr.Markdown(
|
218 |
"""
|
219 |
# 臺灣客語語音合成系統
|
@@ -233,10 +238,7 @@ with demo:
|
|
233 |
speaker_wav,
|
234 |
speaker_drop_down,
|
235 |
dialect_radio,
|
236 |
-
|
237 |
-
label="輸入文字",
|
238 |
-
value="客家族群个六堆運動會會一直延續下去,為臺灣个體育史寫下特別个一頁。",
|
239 |
-
),
|
240 |
],
|
241 |
outputs=[
|
242 |
gr.Textbox(interactive=False, label="斷詞"),
|
@@ -245,5 +247,46 @@ with demo:
|
|
245 |
],
|
246 |
allow_flagging="auto",
|
247 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
demo.launch()
|
|
|
214 |
outputs=[speaker_drop_down, dialect_radio, use_default_emb_or_custom_radio],
|
215 |
)
|
216 |
|
217 |
+
input_text = gr.Textbox(
|
218 |
+
label="輸入文字",
|
219 |
+
value="",
|
220 |
+
)
|
221 |
+
|
222 |
gr.Markdown(
|
223 |
"""
|
224 |
# 臺灣客語語音合成系統
|
|
|
238 |
speaker_wav,
|
239 |
speaker_drop_down,
|
240 |
dialect_radio,
|
241 |
+
input_text,
|
|
|
|
|
|
|
242 |
],
|
243 |
outputs=[
|
244 |
gr.Textbox(interactive=False, label="斷詞"),
|
|
|
247 |
],
|
248 |
allow_flagging="auto",
|
249 |
)
|
250 |
+
gr.Examples(
|
251 |
+
[
|
252 |
+
[
|
253 |
+
"預設語者",
|
254 |
+
"江芮敏",
|
255 |
+
"sixian",
|
256 |
+
"歸條路吊等長長个花燈,祈求風調雨順,歸屋下人个心願,親像花燈下燒暖个光華",
|
257 |
+
],
|
258 |
+
[
|
259 |
+
"預設語者",
|
260 |
+
"戴君儒",
|
261 |
+
"hailu",
|
262 |
+
"男女平等个時代,平平做得受教育",
|
263 |
+
],
|
264 |
+
[
|
265 |
+
"預設語者",
|
266 |
+
"宋涵葳",
|
267 |
+
"dapu",
|
268 |
+
"客家山城乜跈緊鬧熱䟘來咧",
|
269 |
+
],
|
270 |
+
[
|
271 |
+
"預設語者",
|
272 |
+
"江芮敏",
|
273 |
+
"raoping",
|
274 |
+
"頭擺匱人,戴个毋係菅草屋,个創商品哦",
|
275 |
+
],
|
276 |
+
[
|
277 |
+
"預設語者",
|
278 |
+
"洪藝晅",
|
279 |
+
"zhaoan",
|
280 |
+
"歇熱个時務,阿松歸屋下轉去在客莊个老屋",
|
281 |
+
],
|
282 |
+
],
|
283 |
+
label="範例",
|
284 |
+
inputs=[
|
285 |
+
use_default_emb_or_custom_radio,
|
286 |
+
speaker_drop_down,
|
287 |
+
dialect_radio,
|
288 |
+
input_text,
|
289 |
+
],
|
290 |
+
)
|
291 |
|
292 |
demo.launch()
|