danielcd99's picture
test 2 without model
ebd52bf
raw
history blame
647 Bytes
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.")