File size: 1,288 Bytes
cbf0091
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Resume Similarity</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="container">
        <h2>Resume and Job Description Cosine Similarity</h2>
        <form method="POST" enctype="multipart/form-data">
            <label for="resumes">Upload Resumes (PDF files only):</label>
            <input type="file" id="resumes" name="resumes" multiple>
            
            <label for="job_description">Job Description:</label>
            <textarea id="job_description" name="job_description" rows="5" cols="50"></textarea>
            
            <input type="submit" value="Compute Similarity">
        </form>

        {% if results %}
        <h3>Results:</h3>
        <ul>
            {% for resume, similarity in results %}
            <li>
                <strong>Resume Text (first 200 chars):</strong>
                <span class="resume-text">{{ resume[:200] }}...</span><br>
                <strong>Similarity:</strong> {{ similarity }}
            </li>
            {% endfor %}
        </ul>
        {% endif %}
    </div>
</body>
</html>