seedev43/trash-api
0
๐ฎ Sampah Detector - YOLOv8 + FastAPI (Hosted on Hugging Face Spaces)
Deteksi jenis sampah menggunakan model YOLOv8 custom (trained via Roboflow), di-deploy dengan FastAPI pada Hugging Face Spaces.
๐ง Fitur
- Mendeteksi jenis sampah (organik/anorganik) dari gambar.
- API endpoint siap konsumsi.
- Respon JSON seperti format Roboflow.
๐ ๏ธ Teknologi
- YOLOv8 (Ultralytics)
- FastAPI
- Hugging Face Spaces
- PIL, NumPy
๐ Cara Deploy (Hugging Face Spaces)
- Buat Space di Hugging Face:
- Pilih "Space"
- Select SDK:
Docker - Isi nama repo, misal:
sampah-detector
- Clone dan push repo:
git clone https://huggingface.co/spaces/<username>/<repo-name>
cd <repo-name>
# Tambahkan kode, model, dan Dockerfile lalu:
git add .
git commit -m "initial commit"
git push
