File size: 269 Bytes
40e2607
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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)