import os | |
import requests | |
import json | |
def call_inference(img): | |
files = { | |
'image': ('image.jpg', img, 'image/jpeg') | |
} | |
print(img) | |
response = requests.post( | |
"https://aiwb-sightmodel.web.val.run", | |
files=files | |
) | |
return response.json() | |
import os | |
import requests | |
import json | |
def call_inference(img): | |
files = { | |
'image': ('image.jpg', img, 'image/jpeg') | |
} | |
print(img) | |
response = requests.post( | |
"https://aiwb-sightmodel.web.val.run", | |
files=files | |
) | |
return response.json() | |