CoolFace
Apppublic

TomYZhang/toxic-tweets

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
App README

Hugging Face Space

Pretrained Models

Data Set

Requirements

  • —Docker
  • —python 3.9
  • —pandas==2.0.1
  • —scikit-learn==1.0.2
  • —streamlit==1.21.0
  • —torch==2.0.0
  • —transformers==4.27.4

Docker Setup

  1. 1.Navigate to the Docker website and install the latest version of Docker Desktop compatible with your operating system.
  1. 1.To ensure that Docker is properly installed, open your terminal and execute docker version.<br> This will display the properties of Docker version installed.
  1. 1.Download the Pytorch image from Docker Hub.
  1. 1.To build the Docker image, execute docker build -t streamlit . in the terminal.
  1. 1.Execute docker run -p 8501:8501 streamlit to create a container from the streamlit image.
  1. 1.View the Streamlit app at http://0.0.0.0:8501

Deploying the App

  1. 1.Execute docker build -t streamlit . in the terminal to build a Docker image named streamlit.
  1. 1.Execute docker run -p 8501:8501 streamlit to create a container from the streamlit image. The webapp can be accessed at http://0.0.0.0:8501.