Download PyBDC_container/PyBDC_definition.def from didsr/PyBDC-Container: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/didsr/PyBDC-Container/resolve/d0f9f3bf37bbaffd34836934dcd539686bc4ae2f/PyBDC_container/PyBDC_definition.def
- Command line
-
hf download hf://didsr/PyBDC-Container@d0f9f3bf37bbaffd34836934dcd539686bc4ae2f/PyBDC_container/PyBDC_definition.def
-
curl -L -o PyBDC_definition.def https://huggingface.co/didsr/PyBDC-Container/resolve/d0f9f3bf37bbaffd34836934dcd539686bc4ae2f/PyBDC_container/PyBDC_definition.def
720 Bytes
| BootStrap: docker | |
| From: ubuntu:22.04 | |
| %arguments | |
| path_package="" | |
| %files | |
| {{ path_package }} /usr/local/bin/PyBDC | |
| %post | |
| export DEBIAN_FRONTEND=noninteractive | |
| export TZ=America/New_York | |
| # Update package repositories | |
| apt-get -y update | |
| # Install dependencies | |
| apt-get -y install python3.11-tk | |
| apt-get -y install pip | |
| pip install -r /usr/local/bin/PyBDC/requirements.txt | |
| %runscript | |
| # Change the current working directory | |
| cd /usr/local/bin/PyBDC | |
| # To set more appropriate font size for the UI (example, running from container may require UI to have larger font size) | |
| # More details are available in /PyBDC.py | |
| python3 /usr/local/bin/PyBDC/PyBDC.py --font_size_set 2 |