Spaces:
Build error
Build error
download snapshot
Browse files
app.py
CHANGED
|
@@ -3,12 +3,12 @@ from typing import Optional
|
|
| 3 |
import gradio as gr
|
| 4 |
import numpy as np
|
| 5 |
from TTS.api import TTS
|
| 6 |
-
from huggingface_hub import
|
| 7 |
|
| 8 |
|
| 9 |
MAX_TXT_LEN = 100
|
| 10 |
|
| 11 |
-
|
| 12 |
def generate_audio(text):
|
| 13 |
if len(text) > MAX_TXT_LEN:
|
| 14 |
text = text[:MAX_TXT_LEN]
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import numpy as np
|
| 5 |
from TTS.api import TTS
|
| 6 |
+
from huggingface_hub import snapshot_download
|
| 7 |
|
| 8 |
|
| 9 |
MAX_TXT_LEN = 100
|
| 10 |
|
| 11 |
+
snapshot_download(repo_id="DigitalUmuganda/Kinyarwanda_YourTTS",revision="main")
|
| 12 |
def generate_audio(text):
|
| 13 |
if len(text) > MAX_TXT_LEN:
|
| 14 |
text = text[:MAX_TXT_LEN]
|