Spaces:
Build error
Build error
Download app.py from eTouchCode/just-testing: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/spaces/eTouchCode/just-testing/resolve/main/app.py
- Command line
-
hf download hf://spaces/eTouchCode/just-testing/app.py
-
curl -L -o app.py https://huggingface.co/spaces/eTouchCode/just-testing/resolve/main/app.py
281 Bytes
| import subprocess | |
| import sys | |
| # Install gradio manually | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", "gradio"]) | |
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| iface.launch() | |