Spaces:
Runtime error
Runtime error
Download interface.py from anh-dangv94/teachlab: direct link, hf CLI and curl.
- Browser
- Download file 228 Bytes
-
https://huggingface.co/spaces/anh-dangv94/teachlab/resolve/main/interface.py
- Command line
-
hf download hf://spaces/anh-dangv94/teachlab/interface.py
-
curl -L -o interface.py https://huggingface.co/spaces/anh-dangv94/teachlab/resolve/main/interface.py
228 Bytes
| import gradio as gr | |
| def greet(name, intensity): | |
| return "Hello, " + name + "!" * int(intensity) | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=["text", "slider"], | |
| outputs=["text"], | |
| api_name="predict" | |
| ) | |
| demo.launch() |