voice-changer/demo/setup.sh

32 lines
539 B
Bash
Raw Normal View History

2022-08-27 05:43:55 +03:00
#!/bin/bash
2022-09-18 16:09:33 +03:00
CONFIG=$1
MODEL=$2
TYPE=$3
echo config: $CONFIG
echo model: $MODEL
echo type: $TYPE
2022-08-27 05:43:55 +03:00
cp -r /resources/* .
if [[ -e ./setting.json ]]; then
cp ./setting.json ../frontend/dist/assets/setting.json
fi
2022-09-18 16:09:33 +03:00
if [ "${TYPE}" = "SOFT_VC" ] ; then
echo "SOFT_VCを起動します"
python3 SoftVcServerFlask.py 8080
elif [ "${TYPE}" = "SOFT_VC_FAST_API" ] ; then
echo "SOFT_VC_FAST_APIを起動します"
python3 SoftVcServerFastAPI.py 8080
else
echo "MMVCを起動します"
python3 serverSIO.py 8080 $CONFIG $MODEL
fi
2022-08-27 05:43:55 +03:00