Spaces:
Runtime error
Runtime error
Download Demo 1.py from bumk766fall2023/ChatBot: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/bumk766fall2023/ChatBot/resolve/main/Demo%201.py
- Command line
-
hf download 'hf://spaces/bumk766fall2023/ChatBot/Demo 1.py'
-
curl -L -o 'Demo 1.py' https://huggingface.co/spaces/bumk766fall2023/ChatBot/resolve/main/Demo%201.py
282 Bytes
| import gradio as gr | |
| 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) # Share your demo with just 1 extra parameter |