File size: 704 Bytes
638a596 |
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 30 31 32 33 |
#!/bin/bash
chmod +x launch_app.sh
echo "Select the launch mode for the model:"
echo "1. Server"
echo "2. Local"
echo "3. Api"
read -p "Enter choice [1-3]: " mode
case $mode in
1)
echo "Starting server..."
python3 src/model_server.py &
echo "Launching app in mode 1..."
export method=server
python3 src/Interface.py
;;
2)
echo "Launching app in mode 2..."
export method=local
python3 src/Interface.py
;;
3)
echo "Launching app in mode 3..."
export method=api
python3 src/Interface.py
;;
*)
echo "Invalid option selected. Exiting."
exit 1
;;
esac
|