Shabbir-Anjum commited on
Commit
e31a483
1 Parent(s): fbce746

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- # Set up the text-to-speech pipeline
5
- pipe = pipeline('text-to-speech', model='Xenova/speecht5_tts')
6
 
7
  def text_to_speech(text):
8
  result = pipe(text)
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ # Set up the text-to-speech pipeline with a compatible model
5
+ pipe = pipeline('text-to-speech', 'Xenova/speecht5_tts');
6
 
7
  def text_to_speech(text):
8
  result = pipe(text)