Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ from TTS.tts.models.xtts import Xtts
|
|
| 5 |
from pathlib import Path
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
-
CONFIG_URL = 'https://huggingface.co/medmac01/
|
| 9 |
-
VOCAB_URL = 'https://huggingface.co/medmac01/
|
| 10 |
-
MODEL_URL = 'https://huggingface.co/medmac01/
|
| 11 |
SPEAKER_AUDIO_URL = 'https://huggingface.co/medmac01/xtt2_darija_v0.1/resolve/main/speaker_reference.wav'
|
| 12 |
|
| 13 |
base_path = Path(__file__).parent
|
|
@@ -63,10 +63,9 @@ markdown_description = """## Instructions:
|
|
| 63 |
2. Upload a 4-5 seconds audio file of the speaker you want to clone.
|
| 64 |
3. Click on the "Generate" button.
|
| 65 |
|
| 66 |
-
**This space was only possible because of the amazing work done by [OmarSamir](https://huggingface.co/OmarSamir) on the [EGTTS](https://huggingface.co/OmarSamir/EGTTS-V0.1) model.**
|
| 67 |
"""
|
| 68 |
with gr.Blocks(title="EGTTS") as app:
|
| 69 |
-
gr.HTML("<center><h1>
|
| 70 |
gr.Markdown(markdown_description)
|
| 71 |
with gr.Row():
|
| 72 |
with gr.Column():
|
|
|
|
| 5 |
from pathlib import Path
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
+
CONFIG_URL = 'https://huggingface.co/medmac01/darija_xtt_2.0/resolve/main/config.json'
|
| 9 |
+
VOCAB_URL = 'https://huggingface.co/medmac01/darija_xtt_2.0/resolve/main/vocab.json'
|
| 10 |
+
MODEL_URL = 'https://huggingface.co/medmac01/darija_xtt_2.0/resolve/main/model.pth'
|
| 11 |
SPEAKER_AUDIO_URL = 'https://huggingface.co/medmac01/xtt2_darija_v0.1/resolve/main/speaker_reference.wav'
|
| 12 |
|
| 13 |
base_path = Path(__file__).parent
|
|
|
|
| 63 |
2. Upload a 4-5 seconds audio file of the speaker you want to clone.
|
| 64 |
3. Click on the "Generate" button.
|
| 65 |
|
|
|
|
| 66 |
"""
|
| 67 |
with gr.Blocks(title="EGTTS") as app:
|
| 68 |
+
gr.HTML("<center><h1>Moroccan-Darija-TTS </h1></center>")
|
| 69 |
gr.Markdown(markdown_description)
|
| 70 |
with gr.Row():
|
| 71 |
with gr.Column():
|