Spaces:
Paused
Paused
Download app.py from ereezy/longcat-test: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/ereezy/longcat-test/resolve/main/app.py
- Command line
-
hf download hf://spaces/ereezy/longcat-test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ereezy/longcat-test/resolve/main/app.py
280 Bytes
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# LongCat Demo Test") | |
| name = gr.Textbox(label="Your name") | |
| btn = gr.Button("Greet") | |
| output = gr.Textbox(label="Greeting") | |
| btn.click(lambda x: f"Hello {x}!", inputs=name, outputs=output) | |
| demo.launch() |