from gradio_client import Client, file import json client = Client("http://127.0.0.1:7860/") result = client.predict( "Hello!!", # str in 'Text Prompt' Textbox component "en", # Literal['en', 'es', 'fr', 'it', 'pt', 'nl'] in 'Language' Dropdown component file('https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav'), # filepath in 'audio' Audio component api_name="/predict" ) print(result)