update launcher

This commit is contained in:
Vladimir Mandic
2023-04-03 10:51:41 -04:00
parent 2cde8da494
commit d9b5843e2c
4 changed files with 13 additions and 3 deletions
+10
View File
@@ -13,8 +13,18 @@ export CUDA_DEVICE_DEFAULT_PERSISTING_L2_CACHE_PERCENTAGE_LIMIT=0
export GRADIO_ANALYTICS_ENABLED="False"
export SAFETENSORS_FAST_GPU=1
# Check for Python
if [ "$PYTHON" == "" ]; then
PYTHON=$(which python)
else
echo "Python env variable set: $PYTHON"
fi
if [ "$PYTHON" == "" ]; then
PYTHON=$(which python3)
fi
if ! type -P "$PYTHON" >/dev/null; then
echo "Python not found"
exit 1
fi
# Note: Some defaults are changed in shared.py