import requests
file_data = open("sample.jpg", "rb")
mask_type="blur" #rgba,green,blur,map
r = requests.post("https://www.taskswithcode.com/salient_object_detection_api/",
data={"mask":mask_type}, files={"test":file_data})
results = {"response":r.content,"size":len(r.content)}