Spaces:
Running on Zero
Running on Zero
|
Download README.md from Evasim/Simple-Text-Classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.58 kB
-
https://huggingface.co/spaces/Evasim/Simple-Text-Classifier/resolve/main/README.md
- Command line
-
hf download hf://spaces/Evasim/Simple-Text-Classifier/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Evasim/Simple-Text-Classifier/resolve/main/README.md
1.58 kB
A newer version of the Gradio SDK is available: 6.29.1
metadata
title: Simple Text Classifier
emoji: π°
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.24.0
app_file: app.py
pinned: false
license: mit
short_description: Classifies news into World, Sports, Business, or Sci/Tech.
My first MLOps Project
π§ Currently just started to learn MLOps (how to build and deploy models) β following the Made With ML course.
π Using one of the public datasets on Hugging Face, fancyzhx/ag_news, to classify news headlines into World, Sports, Business, or Sci/Tech.
π Live demo: huggingface.co/spaces/Evasim/Simple-Text-Classifier
π€ Trained model: huggingface.co/Evasim/First_Project (fine-tuned SciBERT)
Reproducing locally
git clone https://github.com/evasim/my-first-MLOPS-project.git
cd my-first-MLOPS-project
pip install -r requirements.txt
# regenerate the dataset (not committed β it's public and regenerable)
python src/data_ingestion.py
# run the test suite
pytest src/
To run predictions against the trained model, add to a .env file:
HF_REPO_ID=Evasim/First_Project
Then: python -m src.predict "your headline here"
Training happens in notebooks/MLOPS_project.ipynb.