first commit

This commit is contained in:
2024-07-08 14:15:34 +08:00
commit 8bbb96fe44
8 changed files with 303 additions and 0 deletions

16
api/xtts/run_xtts.sh Normal file
View File

@@ -0,0 +1,16 @@
export FLASK_APP=main.py
export FLASK_ENV=development
# Define the ports to run the application on
ports=(9995 9996)
devices=('cuda' 'cuda')
# Loop through each port and start the application
for i in "${!ports[@]}"; do
port=${ports[$i]}
device=${devices[$i]}
echo "Starting server on port $port with device $device"
APP_DEVICE=$device FLASK_APP=main.py FLASK_ENV=development flask run --port $port --host '0.0.0.0' &
done
wait