-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.html
120 lines (103 loc) · 3.4 KB
/
resume.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resume Category Prediction</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
}
.container {
max-width: 600px;
margin: auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h2 {
text-align: center;
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
input[type="file"] {
margin-bottom: 20px;
}
input[type="submit"] {
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container" style="margin-top:20px;background:#013a5c;color:white;"">
<h1 class="text center">Resume Screening AI base System</h1>
<p>This system supports TXT and PDF files, to be uploaded and it will work on the following....</p>
<ul>
<li>Resume Categorization</li>
<li>Resume Job Recommendation</li>
<li>Resume Parsing (Information Extraction)</li>
</ul>
</div>
<div class="container" style="background:#013a5c;color:white;">
<h2>Upload Your Resume</h2>
<form action="/pred" method="post" enctype="multipart/form-data">
<input type="file" name="resume" accept=".pdf, .txt" required>
<input type="submit" value="Submit">
</form>
{% if message %}
<p class="text-center">{{message}}</p>
{% endif %}
{% if predicted_category %}
<br>
<hr>
<br>
<p class="text-center"><b><strong>Category:</strong></b> {{predicted_category}}</p>
<p class="text-center"><b><strong>Recommended Job:</strong></b> {{recommended_job}}</p>
<br>
<hr>
<h1 class="text-center">Extracted Information</h1>
<p class="text-center"><b><strong>Name:</strong></b> {{name}}</p>
<p class="text-center"><b><strong>Phone No:</strong></b> {{phone}}</p>
<p class="text-center"><b><strong>Email:</strong></b> {{email}}</p>
{% if extracted_skills %}
<p class="text-center"><b><strong>Skills</strong></b></p>
<ul class="list-unstyled text-center">
{% for skill in extracted_skills %}
<li>{{ skill }}</li>
{% endfor %}
</ul>
{% else %}
<p class="text-center">No skills founds.........</p>
<br>
{% if extracted_education %}
<h1 class="text-center">Education:</h1>
<ul class="list-unstyled text-center">
{% for edu in extracted_education %}
<li>{{ edu }}</li>
{% endfor %}
</ul>
{% else %}
<p class="text-center">No Education founds.........</p>
<br>
{% endif %}
{% endif %}
{% endif %}
</div>
</body>
</html>