Comp-I / DEPLOYMENT_CHECKLIST.md
axrzce's picture
Deploy from GitHub main
338d95d verified

A newer version of the Streamlit SDK is available: 1.49.1

Upgrade

πŸš€ CompI Phase 4 Deployment Checklist

Prerequisites

  • GitHub account with your CompI repository
  • Hugging Face account (sign up here)
  • OpenWeatherMap API key (optional, for real-time weather data)

Phase 4.A: Repository Preparation βœ…

  • packages.txt created with system dependencies
  • .gitattributes created for Git LFS support
  • requirements.txt verified and ready
  • GitHub Actions workflow created

Phase 4.B: Hugging Face Space Setup

Step 1: Create Space

  1. Go to Hugging Face Spaces
  2. Click "Create new Space"
  3. Fill in details:
    • Owner: Your username
    • Space name: compi-final-dashboard (or your choice)
    • License: Apache 2.0 (recommended)
    • SDK: Streamlit
    • Hardware: CPU basic (free)
    • Visibility: Public

Step 2: Configure Space

  1. In your new Space, click "Files" β†’ "README.md" β†’ Edit
  2. Replace content with this header:
---
title: CompI β€” Final Dashboard
emoji: 🎨
sdk: streamlit
app_file: src/ui/compi_phase3_final_dashboard.py
pinned: false
---

# CompI - Multimodal AI Art Generation Platform

The ultimate creative platform combining text, audio, data, emotion, and real-time inputs for AI art generation.

## Features

🧩 **Multimodal Inputs** - Text, Audio, Data, Emotion, Real-time feeds
πŸ–ΌοΈ **Advanced References** - Multi-image upload with role assignment  
βš™οΈ **Model Management** - SD 1.5/SDXL switching, LoRA integration
πŸ–ΌοΈ **Professional Gallery** - Filtering, rating, annotation system
πŸ’Ύ **Preset Management** - Save/load complete configurations
πŸ“¦ **Export System** - Complete bundles with metadata

## Usage

1. Configure your inputs in the "Inputs" tab
2. Upload reference images in "Advanced References" 
3. Choose your model and performance settings
4. Generate with intelligent fusion of all inputs
5. Review results in the gallery and export bundles

Built with Streamlit, PyTorch, and Diffusers.
  1. Commit the README changes

Step 3: Add Secrets (Optional)

  1. Go to Space Settings β†’ Repository secrets
  2. Add secret: OPENWEATHER_KEY = your_api_key_here

Phase 4.C: GitHub Actions Setup

Step 1: Get Hugging Face Token

  1. Go to HF Settings β†’ Access Tokens
  2. Click "New token"
  3. Name: CompI Deployment
  4. Type: Write
  5. Click "Generate"
  6. Copy the token (you won't see it again!)

Step 2: Add GitHub Secrets

  1. Go to your GitHub repo β†’ Settings β†’ Secrets and variables β†’ Actions
  2. Click "New repository secret"
  3. Add secret 1:
    • Name: HF_TOKEN
    • Secret: Paste your HF token from step 14
  4. Add secret 2:
    • Name: HF_SPACE_ID
    • Secret: your-username/your-space-name (e.g., AXRZCE/compi-final-dashboard)

Phase 4.D: Test Deployment

Step 1: Trigger First Deploy

  1. In your GitHub repo, make a small change (e.g., edit README.md)
  2. Commit to main branch:
git add .
git commit -m "Initial deployment setup"
git push origin main

Step 2: Monitor Deployment

  1. Go to GitHub repo β†’ Actions tab
  2. Watch the "Deploy to HF Spaces (on main)" workflow
  3. Verify it completes successfully (green checkmark)

Step 3: Test Your Space

  1. Go to your HF Space URL: https://your-username-your-space.hf.space
  2. Wait for the app to build (first time takes 5-10 minutes)
  3. Test basic functionality:
    • Enter a text prompt
    • Generate an image
    • Check that the interface loads properly

Phase 4.E: Production Workflow

For Future Updates

  • Create feature branches for new development
  • Test changes locally: streamlit run src/ui/compi_phase3_final_dashboard.py
  • Open Pull Request to main
  • Merge PR β†’ Automatic deployment to HF Space

Rollback Process

  • If deployment breaks, revert the commit on main
  • GitHub Actions will automatically redeploy the previous version

Troubleshooting

Common Issues

  • Space won't start: Check the build logs in HF Space β†’ Logs
  • GitHub Action fails: Check repo secrets are set correctly
  • App crashes: Verify app_file path in Space README is correct
  • Missing dependencies: Check requirements.txt and packages.txt

Support Resources

Success! πŸŽ‰

Once complete, your CompI platform will be:

  • βœ… Publicly accessible at your HF Space URL
  • βœ… Automatically deployed on every main branch update
  • βœ… Running on free Hugging Face infrastructure
  • βœ… Ready for users worldwide to create multimodal AI art

Share your Space URL: https://your-username-your-space.hf.space