mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 01:10:22 +08:00
feat(web): check assets integrity on start
This commit is contained in:
7
run.sh
7
run.sh
@@ -4,9 +4,6 @@ if [ "$(uname)" = "Darwin" ]; then
|
||||
# macOS specific env:
|
||||
export PYTORCH_ENABLE_MPS_FALLBACK=1
|
||||
export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0
|
||||
elif [ "$(uname)" != "Linux" ]; then
|
||||
echo "Unsupported operating system."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d ".venv" ]; then
|
||||
@@ -22,8 +19,8 @@ else
|
||||
if [ "$(uname)" = "Darwin" ] && command -v brew >/dev/null 2>&1; then
|
||||
brew install python@3.8
|
||||
elif [ "$(uname)" = "Linux" ] && command -v apt-get >/dev/null 2>&1; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install python3.8
|
||||
sudo apt update
|
||||
sudo apt install -y python3.8
|
||||
else
|
||||
echo "Please install Python 3.8 manually."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user