from gradio_client import Client client = Client("tosin2013/montecarlo-automated") result = client.predict( "UI", # str in 'tickers' Textbox component 14, # float in 'Number of Days' Number component api_name="/predict" ) print(result)