segmentation / README.md
Alex
added check
7364060
|
raw
history blame
1.05 kB
---
title: Segmentation
emoji: πŸ“‰
colorFrom: indigo
colorTo: red
sdk: gradio
sdk_version: 5.19.0
app_file: app.py
pinned: false
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Sending image file to api
curl -X POST "https://alexgenovese-segmentation.hf.space/segment" \
-F "data=[{\"type\": \"image\", \"value\": null}]" \
-F "data=@woman_with_bag.jpeg" \
-H "Content-Type: multipart/form-data" \
-o response.json
# Sending image file to api
curl -X POST "https://alexgenovese-segmentation.hf.space/segment" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "file=@woman_with_bag.jpeg"
# Sending image in base 64 to api
1. base64 woman_with_bag.jpeg > image.b64
2. curl -X POST "http://localhost:7860/segment" \
-H "Content-Type: application/json" \
-d "{\"image_base64\": \"$(cat image.b64)\"}"
ir
curl -X POST "http://localhost:7860/segment" \
-H "Content-Type: application/json" \
-d "{\"image_base64\": \"$(base64 woman_with_bag.jpeg)\"}"