Spaces:
Sleeping
Sleeping
Download app.py from davidlopez/Intro-Python-Tutor-V2: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/spaces/davidlopez/Intro-Python-Tutor-V2/resolve/5e345ca7ded7f2ca655c588d8f0f417dbe10f7a6/app.py
- Command line
-
hf download hf://spaces/davidlopez/Intro-Python-Tutor-V2@5e345ca7ded7f2ca655c588d8f0f417dbe10f7a6/app.py
-
curl -L -o app.py https://huggingface.co/spaces/davidlopez/Intro-Python-Tutor-V2/resolve/5e345ca7ded7f2ca655c588d8f0f417dbe10f7a6/app.py
310 Bytes
| import gradio | |
| import json | |
| import os | |
| import gradio as gr | |
| secret_test = os.getenv('SecretTest') | |
| def greet(name, intensity): | |
| return "your secret test key is: " + secret_test + "!" * int(intensity) | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=["text", "slider"], | |
| outputs=["text"], | |
| ) | |
| demo.launch() |