To run this project, follow these steps:
- Clone this repository.
- Open the folder using any IDE.
- Open terminal and run the command "cd Sentiment_Analysis_API"
- In the terminal, run the command "pip install fastapi"
- Then, run the command "pip install uvicorn"
- Then, run the command "pip install setfit" to use the pretrained model.
- A single endpoint at '/analyze' is created to accept post request and show the response using the pre-trained AI model.
- By hitting the url '/docs#/analyze', an input string can be put inside the request body. The sentiment analysis result produced by the model can be seen inside the response body.