Quantumbraid commited on
Commit
554b052
·
verified ·
1 Parent(s): 27517ce

Add Hello World app

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def hello(name: str) -> str:
5
+ return f"Hello, {name or 'world'}!"
6
+
7
+
8
+ demo = gr.Interface(
9
+ fn=hello,
10
+ inputs=gr.Textbox(label="Your name", placeholder="world"),
11
+ outputs=gr.Textbox(label="Greeting"),
12
+ title="Hello World",
13
+ description="A tiny Space created through the Hugging Face connector.",
14
+ )
15
+
16
+ if __name__ == "__main__":
17
+ demo.launch()