Download app.py from ALIallin/Dev: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/ALIallin/Dev/resolve/main/app.py
- Command line
-
hf download hf://spaces/ALIallin/Dev/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ALIallin/Dev/resolve/main/app.py
278 Bytes
| import subprocess | |
| import gradio as gr | |
| def test(): | |
| rust = subprocess.check_output(["rustc", "--version"]).decode() | |
| cargo = subprocess.check_output(["cargo", "--version"]).decode() | |
| return f"{rust}\n{cargo}" | |
| gr.Interface(fn=test, inputs=None, outputs="text").launch() |