import os | |
import requests | |
import json | |
def call_inference(image_file): | |
files = { | |
'media': open(image_file.name, 'rb') | |
} | |
response = requests.post( | |
"https://aiwb-sightmodel.web.val.run", | |
files=files | |
) | |
return response.json() | |
import os | |
import requests | |
import json | |
def call_inference(image_file): | |
files = { | |
'media': open(image_file.name, 'rb') | |
} | |
response = requests.post( | |
"https://aiwb-sightmodel.web.val.run", | |
files=files | |
) | |
return response.json() | |