xujinheng666 commited on
Commit
b05b1f7
·
verified ·
1 Parent(s): 279dec9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -12
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
- #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
-
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
+