File size: 255 Bytes
c532d5b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from PIL import Image
from gradio_client import Client

client = Client("PranomVignesh/timri")

with open('examples/sample_1.jpg', "rb") as f:
    image = Image.open(f)
    image_bytes = f.read()

output = client.predict(
    image_bytes
)

print(output)