Spaces:
Runtime error
Runtime error
Download init.sh from deepwisdom/MetaGPT-SoftwareCompany: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/deepwisdom/MetaGPT-SoftwareCompany/resolve/refs%2Fpr%2F1/init.sh
- Command line
-
hf download hf://spaces/deepwisdom/MetaGPT-SoftwareCompany@refs/pr/1/init.sh
-
curl -L -o init.sh https://huggingface.co/spaces/deepwisdom/MetaGPT-SoftwareCompany/resolve/refs%2Fpr%2F1/init.sh
550 Bytes
| set -ex | |
| while [[ $# -gt 0 ]]; do | |
| key="$1" | |
| case $key in | |
| --update-config-template) | |
| UPDATE_CONFIG_TEMPLATE=true | |
| shift | |
| ;; | |
| *) | |
| # unknown option | |
| shift | |
| ;; | |
| esac | |
| done | |
| rm -rf static | |
| wget -O dist.tar.gz https://public-frontend-1300249583.cos.ap-nanjing.myqcloud.com/test-hp-metagpt-web/dist-20240417204906.tar.gz | |
| tar xvzf dist.tar.gz | |
| mv dist static | |
| rm dist.tar.gz | |
| if [ "$UPDATE_CONFIG_TEMPLATE" = true ]; then | |
| rm static/config.yaml | |
| ln -s ../config/template.yaml static/config.yaml | |
| fi | |