Spaces:
Running
Running
File size: 1,328 Bytes
f06c1bd 7b61a48 744fa76 7026de2 f06c1bd 744fa76 7b61a48 b3135a9 f06c1bd b3135a9 7b61a48 b3135a9 7b61a48 b3135a9 7b61a48 b3135a9 7b61a48 b3135a9 7b61a48 b3135a9 7b61a48 b3135a9 7b61a48 b3135a9 |
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 |
---
title: CyberForge AI
emoji: π
colorFrom: blue
colorTo: purple
sdk: docker
app_file: app.py
pinned: false
license: mit
short_description: CyberForge AI - ML Training & Inference Platform
---
# π CyberForge AI - ML Training & Inference Platform
Gradio UI for notebook execution, model training, and inference + FastAPI REST API for the Heroku backend.
## REST API Endpoints (for backend mlService.js)
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/health` | GET | Health check |
| `/analyze` | POST | AI chat (Gemini) |
| `/analyze-url` | POST | URL threat analysis |
| `/scan-threats` | POST | Threat scanning |
| `/api/insights/generate` | POST | AI insights |
| `/api/models/predict` | POST | ML model prediction |
| `/models` | GET | List available models |
| `/api/analysis/network` | POST | Network traffic analysis |
| `/api/ai/execute-task` | POST | AI task execution |
## Environment Secrets
Set these in your Space settings β Secrets:
- `GEMINI_API_KEY` - Google Gemini API key
- `HF_TOKEN` - HuggingFace token (for model downloads)
- `HF_MODEL_REPO` - Model repository (default: `Che237/cyberforge-models`)
## Backend Integration
Your Heroku backend connects to this Space:
```bash
heroku config:set AI_SERVICE_URL=https://che237-cyberforge.hf.space -a cyberforge
```
|