Matt09Miao commited on
Commit
35f5bf3
·
verified ·
1 Parent(s): fa0b08d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -7,17 +7,10 @@ toxic_model = pipeline("text-classification", model="Matt09Miao/GP5_tweet_toxic"
7
 
8
 
9
 
10
-
11
-
12
-
13
- st.set_page_config(page_title="Generate Your Tweet and Toxicity Analysis")
14
 
15
  st.header("Please input your Tweet for Toxicity Analysis :performing_arts:")
16
- input = st.text_input("Please input your first word...")
17
-
18
- if input is not None:
19
- #Stage 1: Input to Tweet
20
- st.text('Toxicity Analysis...')
21
- result = toxic_model(input)
22
- print(result)
23
 
 
7
 
8
 
9
 
10
+ st.set_page_config(page_title="Tweet Toxicity Analysis")
 
 
 
11
 
12
  st.header("Please input your Tweet for Toxicity Analysis :performing_arts:")
13
+ input = st.text_area("Enter a Tweer for analysis")
14
+ result = toxic_model(input)
15
+ print(result)
 
 
 
 
16