Spaces:
Runtime error
Runtime error
Download example_client.py from PawelMar/LettuceSegmentAPI: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/spaces/PawelMar/LettuceSegmentAPI/resolve/main/example_client.py
- Command line
-
hf download hf://spaces/PawelMar/LettuceSegmentAPI/example_client.py
-
curl -L -o example_client.py https://huggingface.co/spaces/PawelMar/LettuceSegmentAPI/resolve/main/example_client.py
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) | |