Download app.py from Quantumbraid/codex-hello-world-write-test: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Quantumbraid/codex-hello-world-write-test/resolve/main/app.py
- Command line
-
hf download hf://spaces/Quantumbraid/codex-hello-world-write-test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Quantumbraid/codex-hello-world-write-test/resolve/main/app.py
382 Bytes
| import gradio as gr | |
| def hello(name: str) -> str: | |
| return f"Hello, {name or 'world'}!" | |
| demo = gr.Interface( | |
| fn=hello, | |
| inputs=gr.Textbox(label="Your name", placeholder="world"), | |
| outputs=gr.Textbox(label="Greeting"), | |
| title="Hello World", | |
| description="A tiny Space created through the Hugging Face connector.", | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |