Spaces:
Sleeping
Sleeping
Download client.py from closirr/image-classifier: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/spaces/closirr/image-classifier/resolve/main/client.py
- Command line
-
hf download hf://spaces/closirr/image-classifier/client.py
-
curl -L -o client.py https://huggingface.co/spaces/closirr/image-classifier/resolve/main/client.py
211 Bytes
| from gradio_client import Client, handle_file | |
| client = Client("closirr/image-classifier") | |
| for i in range(10): | |
| result = client.predict( | |
| image=handle_file('1.png'), | |
| api_name="/predict" | |
| ) | |
| print(result) | |