Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ vqa_pipeline = pipeline("text2text-generation", model="microsoft/git-base-vqav2"
|
|
| 15 |
|
| 16 |
# 加载文本到语音模型并手动指定
|
| 17 |
text_to_speech_pipeline = pipeline("text-to-speech", model="microsoft/speecht5_tts")
|
|
|
|
| 18 |
|
| 19 |
def main():
|
| 20 |
st.title("Visual Question Answering with Text-to-Speech")
|
|
|
|
| 15 |
|
| 16 |
# 加载文本到语音模型并手动指定
|
| 17 |
text_to_speech_pipeline = pipeline("text-to-speech", model="microsoft/speecht5_tts")
|
| 18 |
+
audio_data = text_to_speech_pipeline(answer, speaker_embeddings=speaker_embeddings)
|
| 19 |
|
| 20 |
def main():
|
| 21 |
st.title("Visual Question Answering with Text-to-Speech")
|