englissi commited on
Commit
8ad08ee
ยท
verified ยท
1 Parent(s): e30bd37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="tts-model-name") # ์ ํ•ฉํ•œ ๋ถˆ๊ฐ€๋ฆฌ์•„์–ด TTS ๋ชจ๋ธ ์ด๋ฆ„์œผ๋กœ ๋Œ€์ฒด
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)