Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Hugging Face์์ TTS ํ์ดํ๋ผ์ธ ๋ก๋
|
5 |
-
tts = pipeline("text-to-speech", model="
|
6 |
|
7 |
def generate_audio(text):
|
8 |
audio = tts(text)
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Hugging Face์์ TTS ํ์ดํ๋ผ์ธ ๋ก๋
|
5 |
+
tts = pipeline("text-to-speech", model="facebook/fastspeech2-en-ljspeech") # ์ ํฉํ ๋ถ๊ฐ๋ฆฌ์์ด TTS ๋ชจ๋ธ ์ด๋ฆ์ผ๋ก ๋์ฒด
|
6 |
|
7 |
def generate_audio(text):
|
8 |
audio = tts(text)
|