from gradio_client import Client # Replace "k0de01/Decidophobia" with the exact identifier of your Hugging Face Space client = Client("k0de01/Decidophobia") # Make a request to the Space's `/predict` API endpoint result = client.predict( question="What should I have for dinner", # Replace this with your desired input prompt api_name="/predict" # API endpoint ) print(result)