from gradio_client import Client client = Client("https://bistromd-mistral--zr2ft.hf.space/") result = client.predict( "Hello, tell me a short story", # str in 'Message' Textbox component 0.9, # int | float (numeric value between 0.0 and 1.0) in 'Temperature' Slider component 256, # int | float (numeric value between 0 and 1048) in 'Max new tokens' Slider component 0.9, # int | float (numeric value between 0.0 and 1) in 'Top-p (nucleus sampling)' Slider component 1.2, # int | float (numeric value between 1.0 and 2.0) in 'Repetition penalty' Slider component api_name="/chat" ) print(result)