File size: 657 Bytes
8cfb550 c8faf17 8cfb550 c8faf17 8cfb550 35e7271 8cfb550 c8faf17 8cfb550 d517c45 |
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 |
#!/bin/bash
# Check if the URL argument is provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <URL>"
exit 1
fi
URL="$1"
# Download get-pip.py script
curl https://bootstrap.pypa.io/get-pip.py -o /home/ubuntu/get-pip.py
# Install pip for Python 3.10
python3.10 /home/ubuntu/get-pip.py
# Install Flask and mlflow using the pip installed earlier
/home/ubuntu/.local/bin/pip3.10 install Flask mlflow
# Download mlserve.py script
wget -O /home/ubuntu/mlserve.py https://huggingface.co/mayurchoubey123/sklearntest/raw/main/mlserve.py
# Run mlserve.py script with the provided URL
# python3.10 mlserve.py "$URL" &
nohup python3.10 mlserve.py "$URL" & |