File size: 265 Bytes
7ebb5b1
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from gradio_client import Client

client = Client("https://pawelmar-lettucesegmentapi.hf.space/--replicas/gphkd/")
result = client.predict(
		"./media-directory/example_input.png",  # filepath  in 'Input Image' Image component
		api_name="/predict"
)
print(result)