import gradio as gr def greet(name): return f"Hello {name}! Welcome to Gradio 5.10!" # Create the interface demo = gr.Interface( fn=greet, inputs=gr.Textbox(label="Enter your name"), outputs=gr.Textbox(label="Greeting"), title="Simple Gradio App", description="A basic Gradio app demonstrating version 5.10 features", theme=gr.themes.Soft() ) if __name__ == "__main__": demo.launch()