Leo Liu commited on
Commit
422377d
·
verified ·
1 Parent(s): 2ade096

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -107,11 +107,10 @@ def main():
107
  progress_bar.progress(100)
108
  audio_data = text2audio(story)
109
  status.update(label="✅ Start playing the story!", state="complete")
110
-
111
- # Auto-play the audio
112
- st.audio(audio_data['audio'],
113
  format="audio/mp3",
114
- autoplay=True)
115
 
116
  if __name__ == "__main__":
117
  main()
 
107
  progress_bar.progress(100)
108
  audio_data = text2audio(story)
109
  status.update(label="✅ Start playing the story!", state="complete")
110
+
111
+ st.audio(audio_data,
 
112
  format="audio/mp3",
113
+ autoplay=True)
114
 
115
  if __name__ == "__main__":
116
  main()