Spaces:
Runtime error
Runtime error
File size: 1,983 Bytes
37380c1 |
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 48 49 50 51 52 53 54 55 56 57 |
# π Setup Instructions for New ABTestPredictor Repository
## Files to Upload to Your New Hugging Face Space
### 1. Core Application Files
- `app.py` - Main application with dual-AI integration
- `requirements.txt` - Python dependencies
- `packages.txt` - System packages
- `README.md` - Documentation
### 2. Data Files
- `metadata.js` - Category definitions and mappings
- `confidence_scores.js` - Confidence scores for Industry + Page Type combinations
- `patterbs.json` - Pattern descriptions for Gemini Pro analysis
### 3. Model Files
- `model/multimodal_cat_mappings_GGG.json` - Category mappings for GGG model
- Upload `multimodal_gated_model_2.7_GGG.pth` directly via Hugging Face Files tab
## π Required API Keys (Set in Spaces Settings)
### Secrets to Add:
1. **Name**: `PERPLEXITY_API_KEY`
**Value**: Your Perplexity API key (starts with `pplx-`)
2. **Name**: `GEMINI_API_KEY`
**Value**: Your Google Gemini API key
## π Upload Process
### Option 1: Manual Upload
1. Go to your new Hugging Face Space
2. Upload all files via the web interface
3. Set the API keys in Settings β Variables and secrets
### Option 2: Git Upload
1. Clone your new repository: `git clone https://huggingface.co/spaces/nitish-spz/ABTestPredictor`
2. Copy all files from this directory to the cloned directory
3. Commit and push: `git add . && git commit -m "Complete app setup" && git push`
## β
Verification
After upload, your space should show:
- β
Dual-AI powered analysis tabs
- β
Enhanced model architecture loaded
- β
359 pattern detection capabilities
- β
Confidence scoring with training statistics
## π― Features Ready
- **Smart Auto-Prediction**: AI categorization + pattern detection
- **Manual Selection**: Traditional dropdown interface
- **Batch Prediction**: CSV file processing
- **Enhanced Results**: Comprehensive analysis with confidence metrics
Your enhanced A/B test predictor with dual-AI analysis is ready to deploy! π
|