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