kcooley03 commited on
Commit
04501e9
·
verified ·
1 Parent(s): 471ed33

Upload demoapp.py

Browse files
Files changed (1) hide show
  1. demoapp.py +16 -0
demoapp.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
+
4
+ def greet(name):
5
+ return f"Hello {name}! Welcome to LiftLocal."
6
+
7
+ demo = gr.Interface(
8
+ fn=greet,
9
+ inputs=gr.Textbox(label="Enter your name"),
10
+ outputs=gr.Textbox(label="Greeting"),
11
+ title="LiftLocal Demo",
12
+ description="A simple Gradio app example."
13
+ )
14
+
15
+ if __name__ == "__main__":
16
+ demo.launch()