Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,17 +40,10 @@ if uploaded_file is not None:
|
|
40 |
|
41 |
#Stage 2: Text to Story
|
42 |
st.text('Generating a story...')
|
43 |
-
|
44 |
-
|
45 |
|
46 |
#Stage 3: Story to Audio data
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
# Play button
|
51 |
-
if st.button("Play Audio"):
|
52 |
-
#st.audio(audio_data['audio'],
|
53 |
-
# format="audio/wav",
|
54 |
-
# start_time=0,
|
55 |
-
# sample_rate = audio_data['sampling_rate'])
|
56 |
-
st.audio("kids_playing_audio.wav")
|
|
|
40 |
|
41 |
#Stage 2: Text to Story
|
42 |
st.text('Generating a story...')
|
43 |
+
story = text2story(scenario)
|
44 |
+
st.write(story)
|
45 |
|
46 |
#Stage 3: Story to Audio data
|
47 |
+
st.text('Generating audio data...')
|
48 |
+
audio_data =text2audio(story)
|
49 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|