TomYZhang/toxic-tweets
0
Hugging Face Space
Pretrained Models
Data Set
Requirements
Dockerpython 3.9pandas==2.0.1scikit-learn==1.0.2streamlit==1.21.0torch==2.0.0transformers==4.27.4
Docker Setup
- Navigate to the Docker website and install the latest version of Docker Desktop compatible with your operating system.
- To ensure that Docker is properly installed, open your terminal and execute
docker version.<br> This will display the properties of Docker version installed.
- Download the Pytorch image from Docker Hub.
- To build the Docker image, execute
docker build -t streamlit .in the terminal.
- Execute
docker run -p 8501:8501 streamlitto create a container from thestreamlitimage.
- View the Streamlit app at http://0.0.0.0:8501
Deploying the App
- Execute
docker build -t streamlit .in the terminal to build a Docker image namedstreamlit.
- Execute
docker run -p 8501:8501 streamlitto create a container from thestreamlitimage. The webapp can be accessed at http://0.0.0.0:8501.
