|
#!/bin/bash |
|
|
|
|
|
set -e |
|
|
|
echo "π Starting Hugging Face Space deployment..." |
|
|
|
|
|
if [ ! -f "system_workflow_analysis.ipynb" ]; then |
|
echo "β Error: system_workflow_analysis.ipynb not found in current directory" |
|
exit 1 |
|
fi |
|
|
|
|
|
git config user.name "kenken999" |
|
git config user.email "[email protected]" |
|
|
|
|
|
echo "π Current git status:" |
|
git status |
|
|
|
|
|
if git diff --cached --quiet; then |
|
echo "π Staging files..." |
|
git add system_workflow_analysis.ipynb |
|
else |
|
echo "β
Files already staged" |
|
fi |
|
|
|
|
|
if ! git diff --cached --quiet; then |
|
echo "πΎ Creating commit..." |
|
git commit -m "Add comprehensive system workflow analysis Jupyter notebook |
|
|
|
Features: |
|
- Complex system workflow visualization with Mermaid diagrams |
|
- Database relationship diagrams (ERD) |
|
- GitHub API integration flow |
|
- Google Chat notification workflow |
|
- Complete approval system workflow |
|
- Real-time system monitoring capabilities |
|
- Interactive controls for system management |
|
|
|
This notebook provides comprehensive visualization and analysis |
|
of the automated system generation and approval workflow." |
|
else |
|
echo "β
No changes to commit" |
|
fi |
|
|
|
|
|
echo "π Attempting to push to Hugging Face Space..." |
|
|
|
|
|
if git push origin main 2>/dev/null; then |
|
echo "β
Successfully pushed to Hugging Face Space!" |
|
echo "π Notebook available at: https://huggingface.co/spaces/kenken999/fastapi_django_main_live/blob/main/system_workflow_analysis.ipynb" |
|
exit 0 |
|
fi |
|
|
|
echo "β Direct push failed. The notebook has been committed locally." |
|
echo "π Manual steps needed:" |
|
echo "1. Go to https://huggingface.co/spaces/kenken999/fastapi_django_main_live" |
|
echo "2. Upload the system_workflow_analysis.ipynb file manually" |
|
echo "3. Or configure your Hugging Face token for git authentication" |
|
|
|
echo "π‘ To set up git authentication with Hugging Face:" |
|
echo " git remote set-url origin https://USER:[email protected]/spaces/kenken999/fastapi_django_main_live" |
|
echo " (Replace USER with your username and TOKEN with your HF token)" |
|
|