Spaces:
Running
Running
File size: 25,840 Bytes
f1cdd1a |
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gya-ank Resume Forge | AnkTechSol</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.skill-chip {
transition: all 0.3s ease;
}
.skill-chip:hover {
transform: translateY(-2px);
}
.match {
background-color: #4ade80;
}
.missing {
background-color: #f87171;
}
.niche {
background-color: #60a5fa;
}
.file-upload {
border: 2px dashed #cbd5e1;
transition: all 0.3s ease;
}
.file-upload:hover {
border-color: #7c3aed;
}
.file-upload.dragover {
border-color: #7c3aed;
background-color: #f3e8ff;
}
#resumeText {
min-height: 200px;
}
#updatedResume {
white-space: pre-wrap;
font-family: monospace;
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Header -->
<header class="bg-purple-700 text-white shadow-lg">
<div class="container mx-auto px-4 py-6 flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<img src="https://anktechsol.com/wp-content/uploads/2023/10/cropped-ATS-Logo-32x32.png" alt="AnkTechSol Logo" class="h-10 w-10 mr-3">
<div>
<h1 class="text-2xl font-bold">Gya-ank Resume Forge</h1>
<p class="text-sm text-purple-200">Powered by <a href="https://anktechsol.com" class="hover:underline" target="_blank">AnkTechSol</a></p>
</div>
</div>
<nav>
<ul class="flex space-x-6">
<li><a href="#" class="hover:text-purple-300">Home</a></li>
<li><a href="#" class="hover:text-purple-300">About</a></li>
<li><a href="#" class="hover:text-purple-300">Contact</a></li>
</ul>
</nav>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<div class="bg-white rounded-xl shadow-lg overflow-hidden mb-8">
<div class="p-6 bg-purple-50 border-b border-purple-100">
<h2 class="text-xl font-semibold text-purple-800">Resume Optimization Tool</h2>
<p class="text-purple-600">Upload your resume and target role to get personalized optimization recommendations</p>
</div>
<div class="p-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<!-- Resume Upload -->
<div class="file-upload rounded-lg p-6 cursor-pointer" id="uploadArea">
<input type="file" id="resumeFile" class="hidden" accept=".pdf,.txt,.docx,.doc">
<div class="text-center">
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-purple-100 mb-3">
<i class="fas fa-file-upload text-purple-600 text-xl"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-1">Upload Resume</h3>
<p class="text-sm text-gray-500">PDF, TXT, DOC or DOCX (max 5MB)</p>
<p class="mt-2 text-sm text-purple-600">Note: PDF parsing requires backend processing in production</p>
<p class="text-sm text-purple-600">For demo, paste text below</p>
</div>
</div>
<!-- Target Role Input -->
<div class="border rounded-lg p-6">
<label for="targetRole" class="block text-sm font-medium text-gray-700 mb-1">Target Role</label>
<input type="text" id="targetRole" placeholder="e.g., Senior Data Scientist - Generative AI"
class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-purple-500 focus:border-purple-500">
<p class="mt-2 text-sm text-gray-500">Be as specific as possible for better results</p>
</div>
</div>
<!-- Resume Text Area -->
<div class="mb-6">
<label for="resumeText" class="block text-sm font-medium text-gray-700 mb-1">Or Paste Resume Text Here</label>
<textarea id="resumeText" rows="8"
class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-purple-500 focus:border-purple-500"></textarea>
</div>
<button id="analyzeBtn" class="w-full md:w-auto px-6 py-3 bg-purple-600 text-white font-medium rounded-md hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2 transition-colors">
<i class="fas fa-magic mr-2"></i> Analyze & Optimize Resume
</button>
</div>
</div>
<!-- Results Section -->
<div id="resultsSection" class="hidden bg-white rounded-xl shadow-lg overflow-hidden">
<div class="border-b border-gray-200">
<nav class="flex -mb-px">
<button data-tab="parsedResume" class="tab-btn py-4 px-6 text-sm font-medium border-b-2 border-transparent hover:text-purple-600 hover:border-purple-300 transition-colors">Parsed Resume</button>
<button data-tab="marketDemand" class="tab-btn py-4 px-6 text-sm font-medium border-b-2 border-transparent hover:text-purple-600 hover:border-purple-300 transition-colors">Market Demand</button>
<button data-tab="gapAnalysis" class="tab-btn py-4 px-6 text-sm font-medium border-b-2 border-transparent hover:text-purple-600 hover:border-purple-300 transition-colors">Gap Analysis</button>
<button data-tab="updatedResume" class="tab-btn py-4 px-6 text-sm font-medium border-b-2 border-transparent hover:text-purple-600 hover:border-purple-300 transition-colors">Updated Resume</button>
<button data-tab="learningPlan" class="tab-btn py-4 px-6 text-sm font-medium border-b-2 border-transparent hover:text-purple-600 hover:border-purple-300 transition-colors">Learning Plan</button>
</nav>
</div>
<div class="p-6">
<!-- Parsed Resume Tab -->
<div id="parsedResume" class="tab-content active">
<h3 class="text-lg font-semibold mb-4 text-purple-800">Parsed Resume Data</h3>
<div class="bg-gray-50 p-4 rounded-md overflow-auto">
<pre id="parsedResumeData" class="text-sm"></pre>
</div>
</div>
<!-- Market Demand Tab -->
<div id="marketDemand" class="tab-content">
<h3 class="text-lg font-semibold mb-4 text-purple-800">Top In-Demand Skills for <span id="targetRoleDisplay" class="text-purple-600"></span></h3>
<div class="mb-6">
<div id="skillsChart" style="height: 400px;"></div>
</div>
<div class="bg-gray-50 p-4 rounded-md overflow-auto">
<pre id="marketSkillsData" class="text-sm"></pre>
</div>
</div>
<!-- Gap Analysis Tab -->
<div id="gapAnalysis" class="tab-content">
<h3 class="text-lg font-semibold mb-4 text-purple-800">Skills Gap Analysis</h3>
<div class="flex flex-wrap gap-2 mb-6" id="skillsChipsContainer"></div>
<div class="bg-gray-50 p-4 rounded-md overflow-auto">
<pre id="skillsGapData" class="text-sm"></pre>
</div>
</div>
<!-- Updated Resume Tab -->
<div id="updatedResume" class="tab-content">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-purple-800">Optimized Resume</h3>
<button id="downloadResumeBtn" class="px-4 py-2 bg-purple-600 text-white text-sm rounded-md hover:bg-purple-700 transition-colors">
<i class="fas fa-download mr-2"></i> Download
</button>
</div>
<div class="bg-gray-50 p-4 rounded-md overflow-auto">
<pre id="updatedResumeText" class="text-sm"></pre>
</div>
</div>
<!-- Learning Plan Tab -->
<div id="learningPlan" class="tab-content">
<h3 class="text-lg font-semibold mb-4 text-purple-800">Personalized Learning Plan</h3>
<div class="bg-gray-50 p-4 rounded-md">
<ul id="learningPlanList" class="list-disc pl-5 space-y-2"></ul>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<div class="flex items-center">
<img src="https://anktechsol.com/wp-content/uploads/2023/10/cropped-ATS-Logo-32x32.png" alt="AnkTechSol Logo" class="h-8 w-8 mr-2">
<span class="text-xl font-bold">AnkTechSol</span>
</div>
<p class="mt-2 text-gray-400">Empowering careers with AI-driven solutions</p>
</div>
<div class="flex space-x-6">
<a href="https://anktechsol.com" class="hover:text-purple-400 transition-colors" target="_blank">Website</a>
<a href="#" class="hover:text-purple-400 transition-colors">Privacy Policy</a>
<a href="#" class="hover:text-purple-400 transition-colors">Terms of Service</a>
</div>
</div>
<div class="mt-8 pt-6 border-t border-gray-700 text-center text-gray-400 text-sm">
<p>© 2023 AnkTechSol. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Sample data for demonstration
const sampleResume = {
"skills": ["Python", "SQL", "Machine Learning", "Pandas", "Data Analysis"],
"projects": [
"Built a predictive model for customer churn using Python and scikit-learn",
"Developed a data visualization dashboard using Tableau"
],
"experience": [
"Data Analyst at XYZ Corp (2020-2023): Analyzed customer data to identify trends and improve marketing strategies",
"Junior Data Scientist at ABC Inc (2018-2020): Assisted in developing machine learning models for product recommendations"
],
"certifications": ["Google Data Analytics Professional Certificate"],
"education": ["BS in Computer Science, University of Example (2018)"],
"summary": "Data professional with 5 years of experience in analytics and machine learning. Skilled in Python, SQL, and data visualization."
};
const sampleMarketSkills = {
"market_skills": [
{"skill": "Python", "demand_score": 0.95},
{"skill": "Machine Learning", "demand_score": 0.92},
{"skill": "Deep Learning", "demand_score": 0.88},
{"skill": "TensorFlow", "demand_score": 0.85},
{"skill": "PyTorch", "demand_score": 0.84},
{"skill": "Natural Language Processing", "demand_score": 0.82},
{"skill": "Generative AI", "demand_score": 0.80},
{"skill": "SQL", "demand_score": 0.78},
{"skill": "Data Visualization", "demand_score": 0.75},
{"skill": "Cloud Computing", "demand_score": 0.72},
{"skill": "AWS", "demand_score": 0.70},
{"skill": "Docker", "demand_score": 0.68},
{"skill": "Kubernetes", "demand_score": 0.65},
{"skill": "Spark", "demand_score": 0.63},
{"skill": "Hadoop", "demand_score": 0.60},
{"skill": "CI/CD", "demand_score": 0.58},
{"skill": "Git", "demand_score": 0.55},
{"skill": "Agile Methodologies", "demand_score": 0.52},
{"skill": "Statistics", "demand_score": 0.50},
{"skill": "Experimental Design", "demand_score": 0.48}
]
};
const sampleUpdatedResume = `John Doe
123 Main Street, City, State 12345 | (123) 456-7890 | [email protected] | linkedin.com/in/johndoe
SUMMARY
Data Scientist with 5+ years of experience specializing in machine learning and data analysis. Proficient in Python, SQL, and data visualization tools. Certified Google Data Analytics Professional with expertise in building predictive models and deriving actionable insights from complex datasets. Recently upskilled in Generative AI and Deep Learning frameworks to stay current with industry trends.
SKILLS
• Programming: Python (Pandas, NumPy, scikit-learn), SQL
• Machine Learning: Supervised/Unsupervised Learning, Model Evaluation
• Deep Learning: TensorFlow, PyTorch (currently learning)
• Data Analysis: Statistical Analysis, Data Cleaning, Feature Engineering
• Tools: Tableau, Git, Docker (basic knowledge)
• Cloud: AWS (fundamentals)
EXPERIENCE
Senior Data Analyst | XYZ Corp | City, State | 2020 - Present
- Developed predictive models using Python and scikit-learn that reduced customer churn by 15%
- Created interactive dashboards in Tableau that improved decision-making for executive team
- Led a team of 3 junior analysts in cleaning and analyzing large datasets (1M+ records)
- Implemented new data validation processes that reduced errors by 20%
Junior Data Scientist | ABC Inc | City, State | 2018 - 2020
- Assisted in developing recommendation systems that increased sales by 10%
- Automated data processing pipelines using Python, saving 15 hours/week
- Conducted A/B tests to optimize marketing campaigns
EDUCATION
BS in Computer Science | University of Example | 2018
CERTIFICATIONS
- Google Data Analytics Professional Certificate
- Deep Learning Specialization (in progress)`;
const sampleLearningPlan = [
"Complete Deep Learning Specialization on Coursera (estimated time: 3 months)",
"Build a Generative AI project using TensorFlow and document on GitHub",
"Take AWS Cloud Practitioner certification to improve cloud skills",
"Attend local meetups on MLOps and CI/CD for machine learning",
"Practice PyTorch through Kaggle competitions"
];
// DOM Elements
const uploadArea = document.getElementById('uploadArea');
const resumeFileInput = document.getElementById('resumeFile');
const resumeTextArea = document.getElementById('resumeText');
const targetRoleInput = document.getElementById('targetRole');
const analyzeBtn = document.getElementById('analyzeBtn');
const resultsSection = document.getElementById('resultsSection');
const tabBtns = document.querySelectorAll('.tab-btn');
const tabContents = document.querySelectorAll('.tab-content');
const parsedResumeData = document.getElementById('parsedResumeData');
const marketSkillsData = document.getElementById('marketSkillsData');
const skillsGapData = document.getElementById('skillsGapData');
const updatedResumeText = document.getElementById('updatedResumeText');
const learningPlanList = document.getElementById('learningPlanList');
const targetRoleDisplay = document.getElementById('targetRoleDisplay');
const skillsChipsContainer = document.getElementById('skillsChipsContainer');
const downloadResumeBtn = document.getElementById('downloadResumeBtn');
const skillsChart = document.getElementById('skillsChart');
// Event Listeners
uploadArea.addEventListener('click', () => resumeFileInput.click());
uploadArea.addEventListener('dragover', (e) => {
e.preventDefault();
uploadArea.classList.add('dragover');
});
uploadArea.addEventListener('dragleave', () => {
uploadArea.classList.remove('dragover');
});
uploadArea.addEventListener('drop', (e) => {
e.preventDefault();
uploadArea.classList.remove('dragover');
if (e.dataTransfer.files.length) {
resumeFileInput.files = e.dataTransfer.files;
handleFileUpload(e.dataTransfer.files[0]);
}
});
resumeFileInput.addEventListener('change', (e) => {
if (e.target.files.length) {
handleFileUpload(e.target.files[0]);
}
});
analyzeBtn.addEventListener('click', analyzeResume);
tabBtns.forEach(btn => {
btn.addEventListener('click', () => {
const tabId = btn.getAttribute('data-tab');
switchTab(tabId);
});
});
downloadResumeBtn.addEventListener('click', downloadResume);
// Functions
function handleFileUpload(file) {
if (file.type === 'text/plain' || file.name.endsWith('.txt')) {
const reader = new FileReader();
reader.onload = (e) => {
resumeTextArea.value = e.target.result;
};
reader.readAsText(file);
} else if (file.name.endsWith('.pdf') || file.name.endsWith('.docx') || file.name.endsWith('.doc')) {
alert('For this demo version, please paste the text content of your resume below. In a production environment, PDF/DOCX files would be processed by a backend service.');
} else {
alert('Unsupported file type. Please upload a PDF, DOC, DOCX or TXT file.');
}
}
function analyzeResume() {
const resumeText = resumeTextArea.value;
const targetRole = targetRoleInput.value.trim();
if (!resumeText || !targetRole) {
alert('Please provide both resume text and target role');
return;
}
// For demo purposes, we'll use the sample data
// In a real app, this would be API calls to backend services
// Display parsed resume
parsedResumeData.textContent = JSON.stringify(sampleResume, null, 2);
// Display market skills
marketSkillsData.textContent = JSON.stringify(sampleMarketSkills, null, 2);
targetRoleDisplay.textContent = targetRole;
// Perform gap analysis
const skillsGap = performGapAnalysis(sampleResume.skills, sampleMarketSkills.market_skills);
skillsGapData.textContent = JSON.stringify(skillsGap, null, 2);
// Display skills chips
displaySkillsChips(skillsGap);
// Display updated resume
updatedResumeText.textContent = sampleUpdatedResume;
// Display learning plan
displayLearningPlan(sampleLearningPlan);
// Show results section
resultsSection.classList.remove('hidden');
// Create skills chart
createSkillsChart(sampleMarketSkills.market_skills);
}
function performGapAnalysis(resumeSkills, marketSkills) {
const skillsGap = [];
// First check resume skills against market
resumeSkills.forEach(skill => {
const marketSkill = marketSkills.find(ms => ms.skill.toLowerCase() === skill.toLowerCase());
if (marketSkill) {
skillsGap.push({
skill: skill,
status: 'MATCH',
demand_score: marketSkill.demand_score
});
} else {
skillsGap.push({
skill: skill,
status: 'NICHE',
demand_score: 0
});
}
});
// Then check market skills not in resume
marketSkills.forEach(ms => {
if (!resumeSkills.some(rs => rs.toLowerCase() === ms.skill.toLowerCase())) {
skillsGap.push({
skill: ms.skill,
status: 'MISSING',
demand_score: ms.demand_score
});
}
});
// Sort by demand score descending
return skillsGap.sort((a, b) => b.demand_score - a.demand_score);
}
function displaySkillsChips(skillsGap) {
skillsChipsContainer.innerHTML = '';
skillsGap.forEach(skill => {
const chip = document.createElement('div');
chip.className = `skill-chip px-3 py-1 rounded-full text-white text-sm font-medium ${skill.status.toLowerCase()}`;
chip.textContent = `${skill.skill} (${skill.status})`;
skillsChipsContainer.appendChild(chip);
});
}
function displayLearningPlan(planItems) {
learningPlanList.innerHTML = '';
planItems.forEach(item => {
const li = document.createElement('li');
li.className = 'text-gray-700';
li.textContent = item;
learningPlanList.appendChild(li);
});
}
function createSkillsChart(marketSkills) {
const sortedSkills = [...marketSkills].sort((a, b) => b.demand_score - a.demand_score).slice(0, 10);
const data = [{
y: sortedSkills.map(skill => skill.skill),
x: sortedSkills.map(skill => skill.demand_score),
type: 'bar',
orientation: 'h',
marker: {
color: 'rgba(124, 58, 237, 0.7)'
}
}];
const layout = {
title: 'Top 10 In-Demand Skills',
xaxis: {
title: 'Demand Score (0-1)'
},
margin: {
l: 150,
r: 50,
b: 50,
t: 50,
pad: 4
}
};
Plotly.newPlot(skillsChart, data, layout);
}
function switchTab(tabId) {
// Hide all tabs
tabContents.forEach(tab => tab.classList.remove('active'));
// Deactivate all buttons
tabBtns.forEach(btn => {
btn.classList.remove('border-purple-500', 'text-purple-600');
btn.classList.add('border-transparent');
});
// Show selected tab
document.getElementById(tabId).classList.add('active');
// Activate selected button
const activeBtn = document.querySelector(`.tab-btn[data-tab="${tabId}"]`);
activeBtn.classList.add('border-purple-500', 'text-purple-600');
activeBtn.classList.remove('border-transparent');
}
function downloadResume() {
const text = updatedResumeText.textContent;
const blob = new Blob([text], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'optimized_resume.txt';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
}
// Initialize first tab as active
switchTab('parsedResume');
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=anktechsol/gyan-ank" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |