Spaces:
Sleeping
Sleeping
File size: 419 Bytes
1bcc1e4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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() |