Matt09Miao commited on
Commit
e119c7e
·
verified ·
1 Parent(s): 577ffe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
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: Image to Text
13
- st.text('Processing img2text...')
14
- scenario = img2text(uploaded_file.name)
15
- st.write(scenario)
 
 
 
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(story)
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"):