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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 511 Bytes
200b606 9f5c4bb b1ff9bf 68a0ad1 4555748 b1ff9bf f4e91ad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ---
license: mit
---
## 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
1) Increasing #epochs
2) Increasing BATCH_SIZE to 32
3) Changing Adam optimizer rate
### Usage
1) Clone te repository
2) Set up the conda environment with requirements.txt
3) In terminal, run the command- uvivorn sentiment_analyzer.api:app --reload |