Download app.py from radames/nginx-gradio-reverse-proxy: direct link, hf CLI and curl.
- Browser
- Download file 300 Bytes
-
https://huggingface.co/spaces/radames/nginx-gradio-reverse-proxy/resolve/main/app.py
- Command line
-
hf download hf://spaces/radames/nginx-gradio-reverse-proxy/app.py
-
curl -L -o app.py https://huggingface.co/spaces/radames/nginx-gradio-reverse-proxy/resolve/main/app.py
300 Bytes
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!" | |
| with gr.Blocks() as blocks: | |
| with gr.Row(): | |
| text_in = gr.Text() | |
| text_out = gr.Text() | |
| btn = gr.Button("Run") | |
| btn.click(fn=greet, inputs=text_in, outputs=text_out) | |
| blocks.queue() | |
| blocks.launch() | |