Spaces:
Sleeping
Sleeping
| title: Ad Placement Recommender | |
| emoji: π― | |
| colorFrom: indigo | |
| colorTo: blue | |
| sdk: streamlit | |
| sdk_version: "1.30.0" | |
| app_file: dashboard.py | |
| pinned: false | |
| # Retention-Aware Mid-Roll Ad Placement System | |
| ## Project Structure | |
| ` | |
| project/ | |
| +-- requirements.txt | |
| βββ simulate_and_test.py β Start here (no video needed) | |
| βββ component1_candidate_generator.py | |
| βββ component2_feature_extractor.py | |
| βββ candidates.json β Output of Component 1 | |
| βββ features.csv β Output of Component 2 | |
| βββ README.md | |
| ``` | |
| ## Quick Start | |
| ```bash | |
| # 1. Install dependencies | |
| pip install -r requirements.txt | |
| # 2. Test the pipeline (no video or API needed) | |
| python simulate_and_test.py | |
| python component2_feature_extractor.py | |
| # 3. Run on a real video | |
| python component1_candidate_generator.py your_video.mp4 | |
| python component2_feature_extractor.py | |
| ``` | |
| ## Phases | |
| - [x] Phase 1 β Environment Setup | |
| - [x] Phase 2 β Component 1: Candidate Generator | |
| - [x] Phase 3 β Component 2: Feature Extractor (simulated retention) | |
| - [ ] Phase 4 β Component 3: ML Ranker (LightGBM) | |
| - [ ] Phase 5 β Component 4: Ad Placement Recommender | |
| - [ ] Phase 6 β FastAPI + Dashboard | |
| - [ ] Phase 7 β Evaluation + Research Paper | |