1
0
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:
源文雨
2024-04-21 00:16:10 +09:00
parent a30d54f61c
commit 4ed830f785
6 changed files with 206 additions and 7 deletions

7
run.sh
View File

@@ -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