Skip to content

pelpuo/roberta_sentiment_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI wrapper for a Roberta Sentiment Analysis Model

Description

This project is a FastAPI wrapper for the Roberta Sentiment Analysis Model using the cardiffnlp/twitter-roberta-base-sentiment-latest model from Hugging Face's Transformers library. The Roberta model is a powerful language model that has been fine-tuned specifically for sentiment analysis tasks. With this FastAPI wrapper, you can easily perform sentiment analysis on text inputs with just a few API calls.

Requirements

  • Python3
  • Git

To run this project:

  1. Clone the repo to your local machine

    git clone https://github.com/pelpuo/yolov3_api.git
    
  2. Switch to the project directory in your terminal

    cd yolov3_api
    
  3. Create a python virtual environment to manage packages

    python -m venv env
    
  4. Activate the virtual environment

    //ON WINDOWS
    .\env\Scripts\activate
    
    //ON LINUX
    source env\bin\activate
    
  5. Install the packages

    pip install -r requirements.txt
    
  6. Start the project

    py main.py
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages