Spaces:
Sleeping
Sleeping
Leo Liu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -78,10 +78,10 @@ def main():
|
|
78 |
st.write(f"**Your Story:**\n{story}")
|
79 |
|
80 |
#Stage 3: Story to Audio data
|
81 |
-
with status_container.status("🎵 **Step 3/3**: Adding magic
|
82 |
progress_bar.progress(100)
|
83 |
audio_data = text2audio(story)
|
84 |
-
status.update(label="✅
|
85 |
|
86 |
# Auto-play the audio
|
87 |
st.audio(audio_data['audio'],
|
|
|
78 |
st.write(f"**Your Story:**\n{story}")
|
79 |
|
80 |
#Stage 3: Story to Audio data
|
81 |
+
with status_container.status("🎵 **Step 3/3**: Adding magic audio...", expanded=True) as status:
|
82 |
progress_bar.progress(100)
|
83 |
audio_data = text2audio(story)
|
84 |
+
status.update(label="✅ Start playing the story!", state="complete")
|
85 |
|
86 |
# Auto-play the audio
|
87 |
st.audio(audio_data['audio'],
|