import gradio as gr def greet(name): return f"Hello, {name}!" # Create the Gradio interface interface = gr.Interface( fn=greet, inputs=gr.Textbox(label="Enter your name"), outputs=gr.Textbox(label="Greeting"), title="Hello World", description="A simple Gradio app that greets you!" ) # Launch the interface if __name__ == "__main__": interface.launch()