image-classifier / client.py
closirr's picture
Merge branch 'main' of https://huggingface.co/spaces/closirr/image-classifier
ba6d91d
Raw History Blame Contribute Delete
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)