import gc import os import random import sys import time import gradio as gr import plotly.graph_objects as go import tweepy from detoxify import Detoxify from transformers import pipeline try: from news_classification.news_topic_text_classifier import news_topic_text_classifier except: os.system( "{} -m pip install git+https://github.com/user1342/News-Article-Text-Classification.git".format(sys.executable)) from news_classification.news_topic_text_classifier import news_topic_text_classifier news_model = news_topic_text_classifier() # Twitter API keys consumer_token = os.getenv('consumer_token') consumer_secret = os.getenv('consumer_secret') my_access_token = os.getenv('my_access_token') my_access_secret = os.getenv('my_access_secret') bearer = os.getenv('bearer') html_data = '''
Scroll down to use Bubble Check-In 1.0. β¬ Bubble Check-In is a tool designed to allow you to check-in-on the type of content someone on Twitter is being exposed to - be that yourself, a friend, loved one, etc. The goal here is to empower users to look out for each-other and identify early if someone is experiencing activity such as hate speech or extremism. We use a queue system, which means you may need to wait your turn to run Bubble Check-In. Bubble Check-In is simple to use simply enter the username of the Twitter account you want to check-in-on and click run!
Created by James Stevenson