Files
whisper-webui/Install.sh
2024-10-22 23:57:04 +09:00

19 lines
401 B
Bash

#!/bin/bash
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python -m venv venv
fi
source venv/bin/activate
python -m pip install -U pip
pip install -r requirements.txt && echo "Requirements installed successfully." || {
echo ""
echo "Requirements installation failed. Please remove the venv folder and run the script again."
deactivate
exit 1
}
deactivate