Spaces:
Paused
Paused
Download gradio1.py from GS7776/GradioBasic: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/spaces/GS7776/GradioBasic/resolve/main/gradio1.py
- Command line
-
hf download hf://spaces/GS7776/GradioBasic/gradio1.py
-
curl -L -o gradio1.py https://huggingface.co/spaces/GS7776/GradioBasic/resolve/main/gradio1.py
360 Bytes
| import gradio as gr # type: ignore | |
| def greet(name, intensity): | |
| return "Hello, " + name + "!" * int(intensity) | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=["text", "slider"], | |
| outputs=["text"], | |
| ) | |
| demo.launch() | |
| # demo.launch(share=True) # with public URL . # Share your demo with just 1 extra parameter | |
| ## | |
| #gradio deploy# to deploy in HF Spaces | |