Spaces:
Runtime error
Runtime error
Download apptest.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/70d23d80bfcb05636bae3ef995b6ea5aeabc8b99/apptest.py
- Command line
-
hf download hf://spaces/davidlopez/Intro-Python-Tutor@70d23d80bfcb05636bae3ef995b6ea5aeabc8b99/apptest.py
-
curl -L -o apptest.py https://huggingface.co/spaces/davidlopez/Intro-Python-Tutor/resolve/70d23d80bfcb05636bae3ef995b6ea5aeabc8b99/apptest.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() |