Download test.py from Jirowe/anpr_gr: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/spaces/Jirowe/anpr_gr/resolve/main/test.py
- Command line
-
hf download hf://spaces/Jirowe/anpr_gr/test.py
-
curl -L -o test.py https://huggingface.co/spaces/Jirowe/anpr_gr/resolve/main/test.py
217 Bytes
| from gradio_client import Client, handle_file | |
| client = Client("http://127.0.0.1:7860/") | |
| result = client.predict( | |
| uploaded_file=handle_file('./test_images/20161027_054405.jpg'), | |
| api_name="/predict" | |
| ) | |
| print(result) |