import gradio as gr def greet(feel): if feel.lower() == "yes": return "I'm glad to hear that! Keep up the positivity!" elif feel.lower() == "no": return "I'm sorry to hear that. I hope things get better soon." else: return "Please select a valid option to proceed." demo = gr.Interface( fn=greet, description="Please select if you are happy or not.", title="Happiness Checker", inputs=gr.Radio(["Yes", "No"], label="Are you happy?"), outputs="text" ) demo.launch()