Spaces:
Runtime error
Runtime error
File size: 350 Bytes
b60cda7 |
1 2 3 4 5 6 7 8 |
import requests <br/> file_data = open("sample.jpg", "rb") <br/> mask_type="blur" #rgba,green,blur,map <br/> r = requests.post("https://www.taskswithcode.com/salient_object_detection_api/", <br/> data={"mask":mask_type}, files={"test":file_data}) <br/> results = {"response":r.content,"size":len(r.content)} <br/> |