Priyanshi3's picture
Create FROM-API
40e2607 verified
raw
history blame contribute delete
269 Bytes
from gradio_client import Client, handle_file
client = Client("Priyanshi3/blip-image-captionin-api")
result = client.predict(
input=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
api_name="/predict"
)
print(result)