Matt09Miao commited on
Commit
eb76bbd
·
verified ·
1 Parent(s): 335f18b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -25,14 +25,13 @@ st.set_page_config(page_title="Generate Your Tweet and Toxicity Analysis")
25
  st.header("Please input your first word of a Tweet :performing_arts:")
26
  input = st.text_input("In put your first word...")
27
 
28
- if input is None:
29
- print("Your word is welcome :slightly_smiling_face:")
30
 
31
  #Stage 1: Input to Tweet
32
  st.text('Generating a Tweet...')
33
  tweet = text2story(input)
34
- st.write(tweet)
35
-
36
  #Stage 2: Tweet Toxicity Analysis
37
 
38
 
 
25
  st.header("Please input your first word of a Tweet :performing_arts:")
26
  input = st.text_input("In put your first word...")
27
 
28
+ if input is not None:
 
29
 
30
  #Stage 1: Input to Tweet
31
  st.text('Generating a Tweet...')
32
  tweet = text2story(input)
33
+ st.write(tweet,max_length=45)
34
+
35
  #Stage 2: Tweet Toxicity Analysis
36
 
37