LettuceSegmentAPI / example_client.py
Pawel_Mar
example client added
7ebb5b1
raw
history blame contribute delete
265 Bytes
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)