anpr_gr / test.py
Jirowe's picture
Allow for API usage
71c3699
Raw History Blame Contribute Delete
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)