#!/usr/bin/env python
# coding: utf-8
# Imports
import json
import os
import time
import gradio as gr
import tweepy
# The HTML body used for the WatchTower page
html_body = '''
WATCH
WatchTower identifies, blocks, and filters out violent and radical content before it reaches your Twitter feed.
WatchTower works to protect you from violent, misinformation, hate speech and other malicious communication by using a suite of machine learning models to identify user accounts that post content that commonly falls into these categories. WatchTower is broken down into two components, the first utilises the Twitter streaming API and applies a suite of machine learning models to identify users that commonly post malicious information, while the second element provides a web UI where users can authenticaate with Twitter and tailor the types and thresholds for the accounts they block.
WatchTower was developed solely by James Stevenson and primarily uses Pinpoint, a machine learning model also developed by James. The future roadmap sees WatchTower incoperate other models for identifying contrent such as misinformation and hate speech. More on Pinpoint and the model WatchTower uses to identify violent extremism can be seen below.
Model Accuracy:
Machine learning models can be validated based on several statistics. These statistics for Pinpoint the main ML model used by WatchTower can be seen below.
Accuracy
Recall
Precision
F-Measure
WatchTower was developed for the Chirp 2022 Twitter API Developer Challenge
Watchtower was developed solely by James Stevenson for the Chirp 2022 Twitter API Developer Challenge. More infomration of this can be found below.