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