Spaces:
Runtime error
Runtime error
Commit
·
5a630d8
1
Parent(s):
eed864f
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -28,6 +28,14 @@ replacements = [
|
|
28 |
]
|
29 |
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
def cleanup_text(text):
|
32 |
for src, dst in replacements:
|
33 |
text = text.replace(src, dst)
|
@@ -46,4 +54,6 @@ syntesize_speech_gradio = gr.Interface(
|
|
46 |
inputs = gr.Textbox(label="Text", placeholder="Type something here..."),
|
47 |
outputs=gr.Audio(),
|
48 |
examples=["Je n'entrerai pas dans les détails, mais je profiterai des secondes qui me restent pour exposer la position ALDE sur le marquage CE, un des points cruciaux de ce rapport."],
|
|
|
|
|
49 |
).launch()
|
|
|
28 |
]
|
29 |
|
30 |
|
31 |
+
title = "Text-to-Speech"
|
32 |
+
description = """
|
33 |
+
Demo for text-to-speech translation in French. Demo uses [Sandiago21/speecht5_finetuned_voxpopuli_french](https://huggingface.co/Sandiago21/speecht5_finetuned_voxpopuli_french) checkpoint, which is based on Microsoft's
|
34 |
+
[SpeechT5 TTS](https://huggingface.co/microsoft/speecht5_tts) model and is fine-tuned in French Audio dataset
|
35 |
+
![Text-to-Speech (TTS)"](https://geekflare.com/wp-content/uploads/2021/07/texttospeech-1200x385.png "Diagram of Text-to-Speech (TTS)")
|
36 |
+
"""
|
37 |
+
|
38 |
+
|
39 |
def cleanup_text(text):
|
40 |
for src, dst in replacements:
|
41 |
text = text.replace(src, dst)
|
|
|
54 |
inputs = gr.Textbox(label="Text", placeholder="Type something here..."),
|
55 |
outputs=gr.Audio(),
|
56 |
examples=["Je n'entrerai pas dans les détails, mais je profiterai des secondes qui me restent pour exposer la position ALDE sur le marquage CE, un des points cruciaux de ce rapport."],
|
57 |
+
title=title,
|
58 |
+
description=description,
|
59 |
).launch()
|