Spaces:
Sleeping
π Quick Start Guide - Testing ML Features
Installation & Setup
1. Install Dependencies
cd SkillSync
pip install -r requirements.txt
Note: First-time setup will download ~750MB of ML models automatically.
2. Run the Application
python app.py
The app will start on http://localhost:7860 (or port 5000)
π§ͺ Testing the New Features
Feature 1: AI Resume Scorer π€
Login as Intern:
- Email:
alice.smith@example.com - Password:
password
- Email:
Navigate: Dashboard β "π€ AI Resume Scorer"
Test Cases:
- Without Job Description: Get baseline score
- With Job Description: Paste a job posting to get targeted score
Expected Output:
- Total score (0-100%)
- Grade (A+ to D)
- Breakdown: Completeness, Skills Depth, Experience Quality, Job Match
- Recommendations for improvement
- Skills count (technical & soft)
Feature 2: Success Predictor π―
From Dashboard: Find any internship card
Click: "π― Predict Success" button
Review:
- Success probability (0-100%)
- Prediction (Likely/Unlikely)
- Confidence level
- Personalized recommendations
Test Different Scenarios:
- High match (>75% similarity) β High success probability
- Medium match (50-75%) β Medium success probability
- Low match (<50%) β Low success probability
Feature 3: Learning Path Generator π
Navigate: Dashboard β "π Learning Path"
Test Two Ways:
Option A: Target Role
Target Role: "Full Stack Developer" SubmitOption B: Target Internship
Select an internship from dropdown Submit
Expected Output:
- Missing skills categorized (Beginner/Intermediate/Advanced)
- Course recommendations with links to:
- Coursera
- Udemy
- YouTube
- Official Docs
- Estimated time per skill
- Learning tips
Feature 4: AI Career Chatbot π¬
Navigate: Dashboard β "π¬ AI Career Chat"
Test Questions:
"How do I write a good resume?" "How do I prepare for interviews?" "What skills should I learn?" "How do I negotiate salary?" "How do I plan my career?"Or Use Quick Buttons: Click any pre-defined question
Expected Output:
- Detailed, contextual responses
- Bullet points with actionable advice
- Links to platform features
Feature 5: Enhanced ATS Insights π
Navigate: Dashboard β "ATS Insights"
Paste Job Description:
We are looking for a Python developer with experience in machine learning, data analysis, and cloud computing. Candidates should have strong problem-solving skills and experience with TensorFlow or PyTorch.Submit
Expected Output:
- Keyword Match Score (traditional)
- Semantic Match Score (NEW - AI-powered)
- Missing keywords
- Improvement tips
Compare:
- Without ML: Only keyword matching
- With ML: Deep semantic understanding
Feature 6: Enhanced Mock Interview π€
Navigate: Dashboard β "Mock Interview"
Select Question: "Describe a challenge you faced"
Provide Response:
In my previous internship, I faced a situation where our database queries were extremely slow. My task was to optimize them. I analyzed the query patterns, added proper indexes, and implemented caching. As a result, we reduced query time by 60% and improved application performance significantly.Submit
Expected Output:
- Score (0-100%)
- Grade
- Detailed metrics:
- Word count
- Readability score
- Sentiment analysis
- STAR method detection
- Technical terms found
- Specific feedback
Feature 7: Semantic Matching in Dashboard π―
Automatic Feature - No separate testing needed
How to Observe:
Login as different interns:
- Alice (Python, ML) β Matches ML internships
- Bob (JavaScript, React) β Matches frontend internships
Compare Scores:
- Old: Exact keyword match only
- New: Semantic understanding
Example:
User has: "machine learning experience"
Job requires: "AI and neural networks"
Old Match: 0% (no common keywords)
New Match: 85% (semantically similar)
π§ͺ Advanced Testing
Test ML Model Loading
# Check logs
cat /tmp/logs/app.log | grep "ML"
Expected:
[INFO] Advanced ML features loaded successfully
[INFO] Semantic model loaded successfully
[INFO] Sentiment analyzer loaded successfully
[INFO] NER model loaded successfully
Test Fallback Mode
Temporarily break ML:
- Rename
ml_utils.pytoml_utils_backup.py - Restart app
- Rename
Verify:
- Dashboard still works
- Basic matching still functions
- Warning in logs: "ML features not available"
Restore:
- Rename back to
ml_utils.py - Restart app
- Rename back to
π Performance Testing
Model Loading Time
import time
from ml_utils import get_semantic_model
start = time.time()
model = get_semantic_model()
print(f"Load time: {time.time() - start:.2f}s")
Expected: 2-5 seconds on first load, <0.1s on subsequent calls
Semantic Similarity Speed
from ml_utils import semantic_similarity
text1 = "Python programming and machine learning"
text2 = "Software development with AI"
start = time.time()
score = semantic_similarity(text1, text2)
print(f"Similarity: {score:.3f}, Time: {(time.time() - start)*1000:.1f}ms")
Expected: <100ms per comparison
π Troubleshooting
Issue: Models not downloading
Solution:
export TRANSFORMERS_CACHE=/tmp/hf_cache
mkdir -p /tmp/hf_cache
Issue: Out of memory
Symptoms: App crashes when loading models
Solution:
- Ensure at least 2GB free RAM
- Close other applications
- Use CPU instead of GPU (already configured)
Issue: Slow performance
Check:
# Verify models are cached
ls -lh /tmp/hf_cache
Should see: ~750MB of cached models
Issue: "ML features not available"
Debug:
python -c "from ml_utils import ML_FEATURES_ENABLED; print(ML_FEATURES_ENABLED)"
If False:
- Check
pip install -r requirements.txtcompleted - Check logs for import errors
- Verify all dependencies installed
π― Success Criteria
β All Features Working When:
- Dashboard loads with ML-powered buttons visible
- AI Resume Scorer returns scores with recommendations
- Success Predictor shows probability for each internship
- Learning Path generates personalized courses
- AI Chatbot provides contextual responses
- ATS Insights shows both keyword and semantic scores
- Mock Interview provides detailed NLP analysis
- Semantic matching shows improved similarity scores
π Test User Accounts
Interns
Alice Smith
Email: alice.smith@example.com
Password: password
Skills: Python, Java, SQL, TensorFlow
Bob Johnson
Email: bob.johnson@example.com
Password: password
Skills: JavaScript, React, Node.js
Recruiters
Emma Wilson (TechCorp)
Email: emma.wilson@techcorp.com
Password: password
Admin
Admin User
Email: admin@example.com
Password: password
π Next Steps
After testing all features:
Customize ML Models:
- Train on your own data
- Fine-tune for your domain
Add More Features:
- Speech-to-text interview
- Video interview analysis
- Collaborative filtering
Scale:
- Use GPU for faster inference
- Cache embeddings in database
- Load balance multiple instances
Monitor:
- Track model performance
- Log user interactions
- A/B test ML vs traditional
π§ Support
If you encounter issues:
- Check
/tmp/logs/app.log - Verify requirements.txt installed
- Ensure internet connection for model downloads
- Check disk space (~1GB free needed)
Happy Testing! π
All ML features are production-ready and thoroughly tested.