Spaces:
Running
Running
Download run.py from gradio/render_split_simple_main: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/gradio/render_split_simple_main/resolve/b1a57504e3f084007c486b3adfa437a958d42e80/run.py
- Command line
-
hf download hf://spaces/gradio/render_split_simple_main@b1a57504e3f084007c486b3adfa437a958d42e80/run.py
-
curl -L -o run.py https://huggingface.co/spaces/gradio/render_split_simple_main/resolve/b1a57504e3f084007c486b3adfa437a958d42e80/run.py
353 Bytes
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| input_text = gr.Textbox(label="input") | |
| def show_split(text): | |
| if len(text) == 0: | |
| gr.Markdown("## No Input Provided") | |
| else: | |
| for letter in text: | |
| gr.Textbox(letter) | |
| if __name__ == "__main__": | |
| demo.launch() | |