#!/bin/bash # Check if the URL argument is provided if [ $# -ne 1 ]; then echo "Usage: $0 " 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" &