Downloads · 30 days
3
6% of all-time downloads
laughingsmile/imdb-sentiment-ci-cd
imdb-sentiment-ci-cd is a machine learning model from laughingsmile. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project trains a simple neural network sentiment classifier for IMDB movie reviews.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
48
Public
Repo size
2.8 MB
Likes
0
Public
Click a slice to open those files.
.pt2.6 MB · 93%
From the Hugging Face model README
This project trains a simple neural network sentiment classifier for IMDB movie reviews.
The model uses:
imdb_top_500.csvdata/
imdb_top_500.csv
model/
model.pt
vectorizer.pkl
config.json
metrics.json
train.py
predict.py
requirements.txt
.github/workflows/train-and-upload.yml
pip install -r requirements.txt
python train.py
python predict.py
Create a Hugging Face access token, then add it to your GitHub repository:
Settings -> Secrets and variables -> Actions -> New repository secret
Name: HF_TOKEN
Value: your Hugging Face token
Edit .github/workflows/train-and-upload.yml and replace:
YOUR_HF_USERNAME/imdb-sentiment-ci-cd
with your real Hugging Face username and model repository name.
After pushing to main, GitHub Actions will:
python train.pySend these two URLs to the WeChat group: