Download app.py from sochlearn/Sample: direct link, hf CLI and curl.
- Browser
- Download file 269 Bytes
-
https://huggingface.co/spaces/sochlearn/Sample/resolve/main/app.py
- Command line
-
hf download hf://spaces/sochlearn/Sample/app.py
-
curl -L -o app.py https://huggingface.co/spaces/sochlearn/Sample/resolve/main/app.py
269 Bytes
| import gradio as gr | |
| def echo_text(text): | |
| return text | |
| demo_textbox = gr.Interface( | |
| fn=echo_text, | |
| inputs=gr.Textbox(label="Enter some text"), # "text" | |
| outputs=gr.Textbox(label="Echoed text"), # "text" | |
| title="Textbox Example" | |
| ) | |
| demo_textbox.launch() |