ai-ad-demo / deploy_gradio_demo.sh
zq13648's picture
Upload folder using huggingface_hub
6936566 verified
raw
history blame
542 Bytes
# This script used to deploy the graio app
# last update 2024-Feb-1
echo '1. Update version number'
read -r -p "Have you checked all the testing items?(y/n)" response
echo # (optional) move to a new line
# response=${response,,} # tolower
if [ $response = "y" ]; then
echo 'Deploying ...'
# Store .env content to local variable
env_value=$(<.env)
# Remove .env file, because it will be publish to gradio
rm .env || echo 'no .env found'
gradio deploy
fi
# Save back .env file
echo "$env_value" > './.env'