Spaces:
Runtime error
Runtime error
Update app/templates/docs.html
Browse files- app/templates/docs.html +9 -16
app/templates/docs.html
CHANGED
|
@@ -77,23 +77,16 @@ print(response.json())</code></pre>
|
|
| 77 |
<button type="submit" class="btn btn-success">Submit Test Request</button>
|
| 78 |
</form>
|
| 79 |
|
| 80 |
-
{% if response
|
| 81 |
-
<
|
| 82 |
-
<
|
| 83 |
-
<
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
</thead>
|
| 87 |
-
<tbody>
|
| 88 |
-
{% for item in response.ranked_resumes %}
|
| 89 |
-
<tr>
|
| 90 |
-
<td>{{ item.filename }}</td>
|
| 91 |
-
<td>{{ "%.4f"|format(item.score) }}</td>
|
| 92 |
-
</tr>
|
| 93 |
{% endfor %}
|
| 94 |
-
</
|
| 95 |
-
|
| 96 |
-
|
| 97 |
<hr class="my-5">
|
| 98 |
<h5> API Response</h5>
|
| 99 |
<pre><code>{{ response | tojson(indent=2) }}</code></pre>
|
|
|
|
| 77 |
<button type="submit" class="btn btn-success">Submit Test Request</button>
|
| 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>
|