Spaces:
Sleeping
Sleeping
Commit
·
5b3d7f1
1
Parent(s):
d7f8b52
test 2 with model
Browse files
app.py
CHANGED
@@ -38,10 +38,11 @@ with st.form(key='forms'):
|
|
38 |
submit_button = st.form_submit_button(label='Analyze')
|
39 |
|
40 |
if submit_button:
|
41 |
-
|
42 |
scraper = TwitterUserScraper(username)
|
43 |
tweets = get_tweets(scraper, number_of_tweets)
|
44 |
predictions = get_predictions(tweets, pipe)
|
45 |
-
|
|
|
46 |
st.table(pd.DataFrame({'tweet': tweets, 'toxic':predictions}))
|
47 |
"""
|
|
|
38 |
submit_button = st.form_submit_button(label='Analyze')
|
39 |
|
40 |
if submit_button:
|
41 |
+
|
42 |
scraper = TwitterUserScraper(username)
|
43 |
tweets = get_tweets(scraper, number_of_tweets)
|
44 |
predictions = get_predictions(tweets, pipe)
|
45 |
+
|
46 |
+
"""
|
47 |
st.table(pd.DataFrame({'tweet': tweets, 'toxic':predictions}))
|
48 |
"""
|