Spaces:
Build error
Build error
Download deploy_second_part.sh from cs-553-group2/case-study-1: direct link, hf CLI and curl.
- Browser
- Download file 915 Bytes
-
https://huggingface.co/spaces/cs-553-group2/case-study-1/resolve/main/deploy_second_part.sh
- Command line
-
hf download hf://spaces/cs-553-group2/case-study-1/deploy_second_part.sh
-
curl -L -o deploy_second_part.sh https://huggingface.co/spaces/cs-553-group2/case-study-1/resolve/main/deploy_second_part.sh
915 Bytes
| PORT=22002 | |
| MACHINE=paffenroth-23.dyn.wpi.edu | |
| # Change to the temporary directory | |
| cd tmp | |
| # Add the key to the ssh-agent | |
| eval "$(ssh-agent -s)" | |
| ssh-add mykey | |
| # check that the code in installed and start up the product | |
| COMMAND="ssh -i tmp/mykey -p ${PORT} -o StrictHostKeyChecking=no student-admin@${MACHINE}" | |
| ${COMMAND} "ls cs553-group2" | |
| ${COMMAND} "sudo apt install -qq -y python3-venv" | |
| ${COMMAND} "cd cs553-group2 && python3 -m venv venv" | |
| ${COMMAND} "cd cs553-group2 && source venv/bin/activate && pip install -r requirements.txt" | |
| ${COMMAND} "nohup cs553-group2/venv/bin/python3 cs553-group2/app.py > log.txt 2>&1 &" | |
| # nohup ./whatever > /dev/null 2>&1 | |
| # debugging ideas | |
| # sudo apt-get install gh | |
| # gh auth login | |
| # requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/v1/chat/completions | |
| # log.txt | |