from gradio_client import Client client = Client("http://127.0.0.1:7866/") result = client.predict( "UI", # str in 'tickers' Textbox component 14, # float in 'Number of Days' Number component api_name="/predict" ) print(result)