Download app.py from hysts-debug/api-page-with-empty-api-name-2: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/hysts-debug/api-page-with-empty-api-name-2/resolve/main/app.py
- Command line
-
hf download hf://spaces/hysts-debug/api-page-with-empty-api-name-2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hysts-debug/api-page-with-empty-api-name-2/resolve/main/app.py
226 Bytes
| #!/usr/bin/env python | |
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| text = gr.Text() | |
| out = gr.Text() | |
| btn = gr.Button() | |
| text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name='') | |
| demo.queue().launch() | |