Spaces:
Runtime error
Runtime error
|
Download GITHUB_SETUP.md from ArtemisAI/Level-1-Project-2-Text-Summarization: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/spaces/ArtemisAI/Level-1-Project-2-Text-Summarization/resolve/main/GITHUB_SETUP.md
- Command line
-
hf download hf://spaces/ArtemisAI/Level-1-Project-2-Text-Summarization/GITHUB_SETUP.md
-
curl -L -o GITHUB_SETUP.md https://huggingface.co/spaces/ArtemisAI/Level-1-Project-2-Text-Summarization/resolve/main/GITHUB_SETUP.md
1.33 kB
| # GitHub Repository Setup | |
| ## To push this project to GitHub: | |
| 1. **Create a new repository on GitHub** | |
| - Go to https://github.com/new | |
| - Repository name: `text-summarization-huggingface` | |
| - Description: "Text Summarization with Transformers - Interactive Gradio demo using DistilBART for portfolio showcase" | |
| - Choose Public (for portfolio visibility) | |
| - Don't initialize with README (we already have one) | |
| 2. **Connect your local repository to GitHub** | |
| ```bash | |
| # Add your GitHub repository as remote origin | |
| git remote add origin https://github.com/YOUR_USERNAME/text-summarization-huggingface.git | |
| # Push your code to GitHub | |
| git push -u origin master | |
| ``` | |
| 3. **Alternative: Using SSH (if configured)** | |
| ```bash | |
| git remote add origin git@github.com:YOUR_USERNAME/text-summarization-huggingface.git | |
| git push -u origin master | |
| ``` | |
| ## For Hugging Face Spaces: | |
| 1. **Authenticate with Hugging Face** | |
| ```bash | |
| huggingface-cli login | |
| ``` | |
| 2. **Upload to Hugging Face Spaces** | |
| ```bash | |
| python3 upload_to_hub.py | |
| ``` | |
| ## Security Notes: | |
| - ✅ `.gitignore` excludes all sensitive files and cache directories | |
| - ✅ No hardcoded tokens or credentials in any files | |
| - ✅ Upload script uses secure authentication via HF CLI | |
| - ✅ Model files and cache are excluded from version control | |