Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
17 |
-
|
18 |
-
|
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 |
|