Spaces:
Paused
Paused
Update templates/index.html
Browse files- templates/index.html +4 -4
templates/index.html
CHANGED
|
@@ -41,9 +41,9 @@
|
|
| 41 |
|
| 42 |
<div class="admin-section">
|
| 43 |
<h3>Admin Panel</h3>
|
| 44 |
-
<form action="/build-rag" method="post" onsubmit="return confirm('This will
|
| 45 |
-
<p>Click the
|
| 46 |
-
<input type="submit" value="Build and Push
|
| 47 |
</form>
|
| 48 |
</div>
|
| 49 |
|
|
@@ -56,7 +56,7 @@
|
|
| 56 |
<div class="result">
|
| 57 |
<p class="reference">{{ result.reference }} ({{result.version}})</p>
|
| 58 |
<p>{{ result.text }}</p>
|
| 59 |
-
<small>Score: {{ "%.4f"|format(result.score) }}</small>
|
| 60 |
</div>
|
| 61 |
{% endfor %}
|
| 62 |
{% endif %}
|
|
|
|
| 41 |
|
| 42 |
<div class="admin-section">
|
| 43 |
<h3>Admin Panel</h3>
|
| 44 |
+
<form action="/build-rag" method="post" onsubmit="return confirm('This will build the database and push it to the Hub. This can take a long time. Are you sure?');">
|
| 45 |
+
<p>Click to build the vector database from the JSON files and upload it to the Hugging Face Hub for persistence. <strong>Requires a write-permission HF_TOKEN secret.</strong></p>
|
| 46 |
+
<input type="submit" value="Build and Push Database to Hub">
|
| 47 |
</form>
|
| 48 |
</div>
|
| 49 |
|
|
|
|
| 56 |
<div class="result">
|
| 57 |
<p class="reference">{{ result.reference }} ({{result.version}})</p>
|
| 58 |
<p>{{ result.text }}</p>
|
| 59 |
+
<small>Score (Distance): {{ "%.4f"|format(result.score) }}</small>
|
| 60 |
</div>
|
| 61 |
{% endfor %}
|
| 62 |
{% endif %}
|