Spaces:
Runtime error
Runtime error
Download deploy.sh from Suryacoder/Smart-Email-Sorter: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/Suryacoder/Smart-Email-Sorter/resolve/main/deploy.sh
- Command line
-
hf download hf://spaces/Suryacoder/Smart-Email-Sorter/deploy.sh
-
curl -L -o deploy.sh https://huggingface.co/spaces/Suryacoder/Smart-Email-Sorter/resolve/main/deploy.sh
1.06 kB
| # This is a shell script to automate the deployment process to Hugging Face. | |
| # The 'echo' commands just print messages to the terminal so we can see the progress. | |
| echo "-------------------------------------" | |
| echo "Starting deployment to Hugging Face..." | |
| echo "-------------------------------------" | |
| # Step 1: Add all new and changed files to Git | |
| echo "=> Adding all files..." | |
| git add . | |
| # Step 2: Commit the changes with a message. | |
| # You can change the message in the quotes below each time if you want. | |
| echo "=> Committing files..." | |
| git commit -m "Update and deploy application" | |
| # Step 3: Push the code to the Hugging Face Space. | |
| # This assumes your remote is named 'space' and your local branch is 'master'. | |
| # It pushes your local 'master' branch to the 'main' branch on Hugging Face. | |
| echo "=> Pushing to Hugging Face..." | |
| git push --force space master:main | |
| echo "-------------------------------------" | |
| echo "✅ Deployment script finished." | |
| echo "Check your Hugging Face Space for the build status." | |
| echo "-------------------------------------" | |