Download app.py from bcebere/test3: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/bcebere/test3/resolve/main/app.py
- Command line
-
hf download hf://spaces/bcebere/test3/app.py
-
curl -L -o app.py https://huggingface.co/spaces/bcebere/test3/resolve/main/app.py
461 Bytes
| # stdlib | |
| from pathlib import Path | |
| import subprocess | |
| import sys | |
| def install(install_pack: list) -> None: | |
| print(f"Installing {install_pack}") | |
| subprocess.check_call( | |
| [sys.executable, "-m", "pip", "install", install_pack], | |
| stdout=subprocess.DEVNULL, | |
| stderr=subprocess.DEVNULL, | |
| ) | |
| if __name__ == "__main__": | |
| install("third_party/adjutorium-0.1.1-py2.py3-none-any.whl") | |
| from run_demonstrator import run | |
| run("app.p") | |