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