Spaces:
Sleeping
Sleeping
File size: 647 Bytes
6cae882 ebd52bf bf5b098 6cae882 bf5b098 6cae882 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import streamlit as st
from snscrape.modules.twitter import TwitterUserScraper
import pandas as pd
from Predict import *
from Scraper import *
from transformers import pipeline
# Model and pipeline
MODEL_PATH = 'danielcd99/multilanguage-toxicity-classifier'
"""
def load_pipeline():
pipe=pipeline(
"text-classification",
model=MODEL_PATH
)
return pipe
pipe = load_pipeline()
"""
# Title and subtitle
st.title("Toxicity Detection")
st.subheader("This is an app for detecting toxicity in tweets written in portuguese. "
"Write the name of the user (without @) and select the number of tweets you want to check.")
|