Spaces:
Sleeping
Sleeping
Download final_deploy_push.py from Bhishaj/MerchFlow-AI: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/Bhishaj/MerchFlow-AI/resolve/main/final_deploy_push.py
- Command line
-
hf download hf://spaces/Bhishaj/MerchFlow-AI/final_deploy_push.py
-
curl -L -o final_deploy_push.py https://huggingface.co/spaces/Bhishaj/MerchFlow-AI/resolve/main/final_deploy_push.py
587 Bytes
| import subprocess | |
| import sys | |
| # Force UTF-8 output for Windows terminals | |
| sys.stdout.reconfigure(encoding='utf-8') | |
| def deploy(): | |
| print("⚠️ Ensure you are inside the D:\\Projects\\MerchFlow AI directory before running this!") | |
| command = "git push --force space clean_deploy:main" | |
| print(f"\nRunning: {command} ...") | |
| try: | |
| subprocess.run(command, check=True, shell=True) | |
| print("\n✅ Successfully pushed to Space!") | |
| except subprocess.CalledProcessError as e: | |
| print(f"\n❌ Push failed: {e}") | |
| if __name__ == "__main__": | |
| deploy() | |