Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -168,7 +168,25 @@ The GitHub Actions workflow automatically:
|
|
| 168 |
- **Output**: 1000 class probabilities
|
| 169 |
- **Optimization**: ONNX + Dynamic Quantization (QUint8)
|
| 170 |
|
| 171 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
|
| 173 |
### Adding New Features
|
| 174 |
|
|
|
|
| 168 |
- **Output**: 1000 class probabilities
|
| 169 |
- **Optimization**: ONNX + Dynamic Quantization (QUint8)
|
| 170 |
|
| 171 |
+
## Cloud API Usage
|
| 172 |
+
|
| 173 |
+
The service is deployed on Hugging Face Spaces. You can access the API directly using the following endpoint:
|
| 174 |
+
|
| 175 |
+
**Endpoint:** `https://phonepixelghost-image-classification-service.hf.space/predict`
|
| 176 |
+
|
| 177 |
+
### 1. Using cURL
|
| 178 |
+
You can test the API from your terminal using this command:
|
| 179 |
+
|
| 180 |
+
```bash
|
| 181 |
+
curl -X POST https://phonepixelghost-image-classification-service.hf.space/predict \
|
| 182 |
+
-F "file=@test.jpg"
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
### 2. Interactive UI
|
| 186 |
+
Visit the Space URL to use the modern web interface:
|
| 187 |
+
[Hugging Face Space Demo](https://huggingface.co/spaces/PhonePixelGhost/Image_Classification_Service)
|
| 188 |
+
|
| 189 |
+
## Local Development
|
| 190 |
|
| 191 |
### Adding New Features
|
| 192 |
|