Download PyBDC/run_container.sh from didsr/PyBDC-Container: direct link, hf CLI and curl.
- Browser
- Download file 937 Bytes
-
https://huggingface.co/didsr/PyBDC-Container/resolve/main/PyBDC/run_container.sh
- Command line
-
hf download hf://didsr/PyBDC-Container/PyBDC/run_container.sh
-
curl -L -o run_container.sh https://huggingface.co/didsr/PyBDC-Container/resolve/main/PyBDC/run_container.sh
937 Bytes
| # !/bin/bash | |
| # Script to download the container and run PyBDC. | |
| # Assumption: the system is Unix based system and Apptainer (https://apptainer.org) is installed. | |
| # Clone PyBDC container from HuggingFace | |
| git clone https://huggingface.co/didsr/PyBDC-Container | |
| cd PyBDC-Container | |
| read -r -p "Are you providing PyBDC an incident spectrum? [y/N] " response | |
| case "$response" in | |
| [yY][eE][sS]|[yY]) | |
| echo "Provide the parent directory path for the incident spectrum file: " | |
| read directory_path | |
| echo "Provided path: $directory_path" | |
| echo "You can access the content of the provided directory in /mnt directory from PyBDC GUI" | |
| apptainer run --bind $directory_path:/mnt ./PyBDC_container/PyBDC_container.sif | |
| ;; | |
| *) | |
| echo "Incident spectrum files can be accessed from /usr/local/bin/PyBDC/incident_spectrum/" | |
| apptainer run ./PyBDC_container/PyBDC_container.sif | |
| ;; | |
| esac | |