Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
| 1 |
---
|
| 2 |
-
title: Image
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: blue
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FastAPI Image Processor
|
| 3 |
+
emoji: 🖼️
|
| 4 |
+
colorFrom: indigo
|
| 5 |
colorTo: blue
|
| 6 |
sdk: docker
|
| 7 |
+
app_file: app.py
|
| 8 |
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# 📸 FastAPI Image Processor (Docker Space)
|
| 13 |
+
|
| 14 |
+
Send a `POST` request to `/process-image` with an image file. The Space will return:
|
| 15 |
+
- filename
|
| 16 |
+
- width & height
|
| 17 |
+
- format (e.g., JPEG, PNG)
|
| 18 |
+
|
| 19 |
+
## 🧪 Test locally
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
curl -X POST http://localhost:7860/process-image \
|
| 23 |
+
-F "file=@example.jpg"
|