Spaces:
Running
Running
File size: 1,200 Bytes
4a7269a 82a5638 4a7269a d44ee9f 4a7269a 82a5638 4a7269a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
---
title: StableCog Credit Monitor
emoji: 🎨
colorFrom: purple
colorTo: indigo
sdk: gradio
sdk_version: 5.0.0
app_file: app.py
pinned: false
---
# StableCog Credit Monitor 🎯
A beautiful dashboard to monitor your StableCog API credits and plan image generation projects.
## Features ✨
- ✅ Real-time credit checking
- ✅ Visual progress bar with color coding
- ✅ Smart AI recommendations
- ✅ Raw API response viewer
- ✅ Error handling with troubleshooting tips
- ✅ Auto-refresh on load
- ✅ Mobile responsive design
## Setup on Hugging Face Spaces 🚀
1. **Fork this Space** or create a new Gradio Space
2. **Add your API key:**
- Go to your Space's Settings → Secrets
- Add a new secret:
- Key: `STABLECOG_API_KEY`
- Value: `your_actual_stablecog_api_key`
3. **The app will automatically:**
- Load your API key from secrets
- Display your credit status
- Provide usage recommendations
## Local Development 💻
```bash
git clone [your-space-repo]
cd [repo-name]
pip install -r requirements.txt
export STABLECOG_API_KEY="your_key_here"
python app.py
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|