from gradio_client import Client, file client = Client("http://127.0.0.1:7860/") client.predict( name="Rei", intensity=0, api_name="/predict" )