LPX55's picture
Update utils/goat.py
ca9dc4f verified
raw
history blame
282 Bytes
import os
import requests
import json
def call_inference(img_bytes):
files = {
'image': ('image.jpg', img_bytes, 'image/jpeg')
}
response = requests.post(
"https://aiwb-sightmodel.web.val.run",
files=files
)
return response.json()