ArtemisAI's picture
Upload folder using huggingface_hub
0c9b99b verified
|
Raw History Blame Contribute Delete
1.33 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade

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

    # 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)

    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

    huggingface-cli login
    
  2. Upload to Hugging Face Spaces

    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