Spaces:
Build error
Build error
File size: 915 Bytes
53f64f4 597f56a 53f64f4 597f56a 53f64f4 597f56a 1372603 53f64f4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #! /bin/bash
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
|