A newer version of the Streamlit SDK is available:
1.49.1
π 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
- Go to Hugging Face Spaces
- Click "Create new Space"
- 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
- In your new Space, click "Files" β "README.md" β Edit
- 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.
- Commit the README changes
Step 3: Add Secrets (Optional)
- Go to Space Settings β Repository secrets
- Add secret:
OPENWEATHER_KEY
=your_api_key_here
Phase 4.C: GitHub Actions Setup
Step 1: Get Hugging Face Token
- Go to HF Settings β Access Tokens
- Click "New token"
- Name:
CompI Deployment
- Type: Write
- Click "Generate"
- Copy the token (you won't see it again!)
Step 2: Add GitHub Secrets
- Go to your GitHub repo β Settings β Secrets and variables β Actions
- Click "New repository secret"
- Add secret 1:
- Name:
HF_TOKEN
- Secret: Paste your HF token from step 14
- Name:
- Add secret 2:
- Name:
HF_SPACE_ID
- Secret:
your-username/your-space-name
(e.g.,AXRZCE/compi-final-dashboard
)
- Name:
Phase 4.D: Test Deployment
Step 1: Trigger First Deploy
- In your GitHub repo, make a small change (e.g., edit README.md)
- Commit to
main
branch:
git add .
git commit -m "Initial deployment setup"
git push origin main
Step 2: Monitor Deployment
- Go to GitHub repo β Actions tab
- Watch the "Deploy to HF Spaces (on main)" workflow
- Verify it completes successfully (green checkmark)
Step 3: Test Your Space
- Go to your HF Space URL:
https://your-username-your-space.hf.space
- Wait for the app to build (first time takes 5-10 minutes)
- 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
andpackages.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