Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return f"Hello {name}! Welcome to Gradio 5.10!"
|
5 |
+
|
6 |
+
# Create the interface
|
7 |
+
demo = gr.Interface(
|
8 |
+
fn=greet,
|
9 |
+
inputs=gr.Textbox(label="Enter your name"),
|
10 |
+
outputs=gr.Textbox(label="Greeting"),
|
11 |
+
title="Simple Gradio App",
|
12 |
+
description="A basic Gradio app demonstrating version 5.10 features",
|
13 |
+
theme=gr.themes.Soft()
|
14 |
+
)
|
15 |
+
|
16 |
+
if __name__ == "__main__":
|
17 |
+
demo.launch()
|