Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,19 +9,18 @@ input = st.text_input("In put your first word...")
|
|
9 |
if input is not None:
|
10 |
print(Your word is welcome :slightly_smiling_face:)
|
11 |
|
12 |
-
#Stage 1:
|
13 |
-
st.text('
|
14 |
-
|
15 |
-
st.write(
|
|
|
|
|
|
|
16 |
|
17 |
-
#Stage 2: Text to Story
|
18 |
-
st.text('Generating a story...')
|
19 |
-
story = text2story(scenario)
|
20 |
-
st.write(story)
|
21 |
|
22 |
#Stage 3: Story to Audio data
|
23 |
st.text('Generating audio data...')
|
24 |
-
audio_data =text2audio(
|
25 |
|
26 |
# Play button
|
27 |
if st.button("Play Audio"):
|
|
|
9 |
if input is not None:
|
10 |
print(Your word is welcome :slightly_smiling_face:)
|
11 |
|
12 |
+
#Stage 1: Input to Tweet
|
13 |
+
st.text('Generating a Tweet...')
|
14 |
+
tweet = text2story(input)
|
15 |
+
st.write(tweet)
|
16 |
+
|
17 |
+
#Stage 2: Tweet Toxicity Analysis
|
18 |
+
|
19 |
|
|
|
|
|
|
|
|
|
20 |
|
21 |
#Stage 3: Story to Audio data
|
22 |
st.text('Generating audio data...')
|
23 |
+
audio_data =text2audio(tweet)
|
24 |
|
25 |
# Play button
|
26 |
if st.button("Play Audio"):
|