Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ if image_data is not None:
|
|
30 |
st.write(f"图像描述: {caption}")
|
31 |
|
32 |
# 生成语音
|
33 |
-
tts = gTTS(text=caption, lang='
|
34 |
|
35 |
# 创建临时文件来保存音频
|
36 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as fp:
|
|
|
30 |
st.write(f"图像描述: {caption}")
|
31 |
|
32 |
# 生成语音
|
33 |
+
tts = gTTS(text=caption, lang='en')
|
34 |
|
35 |
# 创建临时文件来保存音频
|
36 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as fp:
|