swoonyk/object-detection
0
Standalone Object Detection Service for iAssist
This service is a containerized Flask application that provides object detection using YOLOv8. It is designed to be deployed as a separate microservice.
Deployment to Hugging Face Spaces
Follow the same steps as you did for the TTS service, but for this new service.
Step 1: Create a New Space
- Go to your Hugging Face profile and click on "New Space".
- Space name:
iassist-detection-service(or similar). - License:
MIT. - Space SDK: "Docker".
- Hardware: "CPU basic" (from the free tier).
- Click "Create Space".
Step 2: Upload Your Files
- Go to the "Files" tab of your new space.
- Click "Add file" and then "Upload files".
- Upload the files for this service:
app.pyrequirements.txtDockerfileyolov8n.pt(from the root of theiassist-segf-v2project)- This
README.mdfile. - Commit the files to the
mainbranch.
Step 3: Build and Deploy
Hugging Face will automatically build and deploy your service. This will take some time.
Step 4: Get Your Service URL
Once deployed, find its public URL. The detection API endpoint will be at:
https://<your-username>-<your-space-name>.hf.space/api/detect
You will need this URL for the final step.
