Spaces:
No application file
No application file
Upload demoapp.py
Browse files- 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()
|