Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,14 @@ goai_stt = gr.Interface(
|
|
17 |
gr.Audio(sources=["microphone", "upload"], type="numpy")
|
18 |
],
|
19 |
outputs="text",
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
)
|
22 |
|
23 |
goai_tts = gr.Interface(
|
@@ -28,7 +35,8 @@ goai_tts = gr.Interface(
|
|
28 |
outputs=[
|
29 |
gr.Audio(label="Generated Audio", type="numpy")
|
30 |
],
|
31 |
-
title="
|
|
|
32 |
)
|
33 |
|
34 |
goai_traduction = gr.Interface(
|
@@ -40,14 +48,15 @@ goai_traduction = gr.Interface(
|
|
40 |
],
|
41 |
outputs=["text"],
|
42 |
examples=[["Yʋʋm a wãn la b kẽesd biig lekolle?", "mos_Latn", "fra_Latn"]],
|
43 |
-
title="
|
|
|
44 |
)
|
45 |
|
46 |
|
47 |
with demo:
|
48 |
gr.TabbedInterface(
|
49 |
[goai_traduction, goai_tts, goai_stt],
|
50 |
-
["
|
51 |
)
|
52 |
|
53 |
demo.launch()
|
|
|
17 |
gr.Audio(sources=["microphone", "upload"], type="numpy")
|
18 |
],
|
19 |
outputs="text",
|
20 |
+
examples=[["./example1.wav"],
|
21 |
+
["./example2.wav"],
|
22 |
+
["./example3.wav"],
|
23 |
+
["./example4.wav"],
|
24 |
+
["./example5.wav"]],
|
25 |
+
|
26 |
+
title="Transcription Mooré: audio vers texte",
|
27 |
+
description="Démo de transcription de la parole vers le texte en langage Mooré. Enregistrez l'audio à partir de votre micro ou uploadez-le depuis votre appareil!",
|
28 |
)
|
29 |
|
30 |
goai_tts = gr.Interface(
|
|
|
35 |
outputs=[
|
36 |
gr.Audio(label="Generated Audio", type="numpy")
|
37 |
],
|
38 |
+
title="Synthèse vocale Mooré: texte vers audio",
|
39 |
+
description="Démo de synthèse vocale d'un texte en langage Mooré!",
|
40 |
)
|
41 |
|
42 |
goai_traduction = gr.Interface(
|
|
|
48 |
],
|
49 |
outputs=["text"],
|
50 |
examples=[["Yʋʋm a wãn la b kẽesd biig lekolle?", "mos_Latn", "fra_Latn"]],
|
51 |
+
title="Traduction du Mooré: texte vers texte",
|
52 |
+
description="Démo de traduction d'un texte en langage Mooré à partir de l'anglais ou du francais!",
|
53 |
)
|
54 |
|
55 |
|
56 |
with demo:
|
57 |
gr.TabbedInterface(
|
58 |
[goai_traduction, goai_tts, goai_stt],
|
59 |
+
["Traduction", "Text-2-speech", "Speech-2-text"],
|
60 |
)
|
61 |
|
62 |
demo.launch()
|