Instructions to use paarthmadan/Sentiment-Analysis-API with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use paarthmadan/Sentiment-Analysis-API with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("paarthmadan/Sentiment-Analysis-API", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Sentiment Analysis API
This is the deployment part of the project.
Training:
Run the Google Colab notebook (Runtime = "GPU") (https://colab.research.google.com/drive/1EuF5FDl1X8VnuOO5RxzmM0c9TbtQrVm9?usp=sharing)
Fine Tuning
- Increasing #epochs
- Increasing BATCH_SIZE to 32
- Changing Adam optimizer rate
Usage
- Clone te repository
- Set up the conda environment with requirements.txt
- In terminal, run the command- uvivorn sentiment_analyzer.api:app --reload
- Downloads last month
- 5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("paarthmadan/Sentiment-Analysis-API", dtype="auto")