import requests
with open('image.jpg', "rb") as img_file:
source_bytes = img_file.read()
headers = {'Min-Confidence': '0.50'}
response = requests.post('https://asia-east2-falcon 293005.cloudfunctions.net/falcon', data=source_bytes, headers=headers)
import requests
url = 'https://site.com/image.jpg'
headers = {'Min-Confidence': '0.50'}
response = requests.post('https://asia-east2-falcon 293005.cloudfunctions.net/falcon', data=requests.get(url), headers=headers)