webcodelab commited on
Commit
1bef8f4
·
verified ·
1 Parent(s): aef55e8

Update app/templates/docs.html

Browse files
Files changed (1) hide show
  1. app/templates/docs.html +17 -11
app/templates/docs.html CHANGED
@@ -78,18 +78,24 @@ print(response.json())</code></pre>
78
  </form>
79
 
80
  {% if response %}
81
- <h3>Ranking Results</h3>
82
  <p><strong>Job Description:</strong> {{ response.job_description }}</p>
83
- <ul>
84
- {% for r in response.ranked_resumes %}
85
- <li>{{ r.filename }} — Score: {{ r.score }}</li>
86
- {% endfor %}
87
- </ul>
88
- {% endif %}
89
-
90
- <hr class="my-5">
91
- <h5> API Response</h5>
92
- <pre><code>{{ response | tojson(indent=2) }}</code></pre>
 
 
 
 
 
 
93
  {% endif %}
94
 
95
  <p class="mt-4"><a href="{{ url_for('auth.dashboard') }}" class="btn btn-secondary">← Back to Dashboard</a></p>
 
78
  </form>
79
 
80
  {% if response %}
81
+ <h3>🔍 Resume Ranking Results</h3>
82
  <p><strong>Job Description:</strong> {{ response.job_description }}</p>
83
+ <table class="table table-bordered">
84
+ <thead>
85
+ <tr>
86
+ <th>Filename</th>
87
+ <th>Score</th>
88
+ </tr>
89
+ </thead>
90
+ <tbody>
91
+ {% for r in response.ranked_resumes %}
92
+ <tr>
93
+ <td>{{ r.filename }}</td>
94
+ <td>{{ r.score }}</td>
95
+ </tr>
96
+ {% endfor %}
97
+ </tbody>
98
+ </table>
99
  {% endif %}
100
 
101
  <p class="mt-4"><a href="{{ url_for('auth.dashboard') }}" class="btn btn-secondary">← Back to Dashboard</a></p>