My_first_app / app.py
SageWisp's picture
Create app.py
1bcc1e4 verified
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()