Spaces:
No application file
No application file
Download demoapp.py from byteofthegoldentiger/LiftLocal: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/spaces/byteofthegoldentiger/LiftLocal/resolve/main/demoapp.py
- Command line
-
hf download hf://spaces/byteofthegoldentiger/LiftLocal/demoapp.py
-
curl -L -o demoapp.py https://huggingface.co/spaces/byteofthegoldentiger/LiftLocal/resolve/main/demoapp.py
354 Bytes
| import gradio as gr | |
| def greet(name): | |
| return f"Hello {name}! Welcome to LiftLocal." | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=gr.Textbox(label="Enter your name"), | |
| outputs=gr.Textbox(label="Greeting"), | |
| title="LiftLocal Demo", | |
| description="A simple Gradio app example." | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |