AzizWazir commited on
Commit
c045613
·
verified ·
1 Parent(s): e9e16ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ import io
6
  # Initialize TTS pipeline
7
  @st.cache_resource
8
  def get_tts_pipeline():
9
- return pipeline("text-to-speech", model="facebook/fastspeech2-en-ljspeech")
 
10
 
11
  tts = get_tts_pipeline()
12
 
 
6
  # Initialize TTS pipeline
7
  @st.cache_resource
8
  def get_tts_pipeline():
9
+ # Use a valid TTS model from Hugging Face
10
+ return pipeline("text-to-speech", model="microsoft/speecht5_tts")
11
 
12
  tts = get_tts_pipeline()
13