ake178178 commited on
Commit
f815f1f
·
verified ·
1 Parent(s): 88cb1c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='zh')
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: