Steven-GU-Yu-Di commited on
Commit
a12eb5f
·
verified ·
1 Parent(s): 84cc85e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
5
  vqa_pipeline = pipeline("text2text-generation", model="microsoft/git-base-vqav2")
6
 
7
  # 加载文本到语音模型
8
- text_to_speech_pipeline = pipeline("text-to-speech", model="tts_model_name")
9
 
10
  def main():
11
  st.title("Visual Question Answering with Text-to-Speech")
 
5
  vqa_pipeline = pipeline("text2text-generation", model="microsoft/git-base-vqav2")
6
 
7
  # 加载文本到语音模型
8
+ text_to_speech_pipeline = pipeline("text-to-speech", model="microsoft/speecht5_tts")
9
 
10
  def main():
11
  st.title("Visual Question Answering with Text-to-Speech")