Team Ai
Apppublic

hasanriaz121/sentiment-analysis

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

Overview

Sentiment Analysis tool utilizing Roberta-Base pretrained model called using endpoints made with FastAPI. Containerized into a Docker Image.

Endpoints

/ - The main page of the app. Users enter text here to be sent for sntiment analysis.\ /analyze - This endpoint is responsible for sendng text to the model and displaying the results.

Documentation and Testing

FastAPI provides documentation endpoint at /docs where you can test API endpoints and send data.

Docker Build

You can run a local container of the app using docker

  1. 1.Clone the repository into your machine.
  2. 2.Run docker build Dockerfile inside root directory of the space to build a docker image file.
  3. 3.Start a container from the image using docker run -p <preferred-port>:7860 <image-name or image-sha>. This will map virtual port 7860 to a port of your choosing, allowing you to access the endpoints at localhost:<preferred-port>