File size: 282 Bytes
7b2b2e4
 
 
 
ca9dc4f
7b2b2e4
ca9dc4f
7b2b2e4
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()