Spaces:
Runtime error
Runtime error
Download app.py from davidlopez/Intro-Python-Tutor: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/spaces/davidlopez/Intro-Python-Tutor/resolve/185094ada09c60ba73f8301cfbc6e9660cdc735b/app.py
- Command line
-
hf download hf://spaces/davidlopez/Intro-Python-Tutor@185094ada09c60ba73f8301cfbc6e9660cdc735b/app.py
-
curl -L -o app.py https://huggingface.co/spaces/davidlopez/Intro-Python-Tutor/resolve/185094ada09c60ba73f8301cfbc6e9660cdc735b/app.py
242 Bytes
| import gradio | |
| import json | |
| import os | |
| 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() |