IrisDeng commited on
Commit
8eb16bd
·
verified ·
1 Parent(s): aacd54d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -21,17 +21,17 @@ if uploaded_file is not None:
21
 
22
  #Stage 2: Text to Story
23
  st.text('Generating a story...')
24
- #story = text2story(scenario)
25
- #st.write(story)
26
 
27
  #Stage 3: Story to Audio data
28
- #st.text('Generating audio data...')
29
- #audio_data =text2audio(story)
30
 
31
  # Play button
32
  if st.button("Play Audio"):
33
- #st.audio(audio_data['audio'],
34
- # format="audio/wav",
35
- # start_time=0,
36
- # sample_rate = audio_data['sampling_rate'])
37
  st.audio("kids_playing_audio.wav")
 
21
 
22
  #Stage 2: Text to Story
23
  st.text('Generating a story...')
24
+ story = text2story(scenario)
25
+ st.write(story)
26
 
27
  #Stage 3: Story to Audio data
28
+ st.text('Generating audio data...')
29
+ audio_data =text2audio(story)
30
 
31
  # Play button
32
  if st.button("Play Audio"):
33
+ st.audio(audio_data['audio'],
34
+ format="audio/wav",
35
+ start_time=0,
36
+ sample_rate = audio_data['sampling_rate'])
37
  st.audio("kids_playing_audio.wav")