Spaces:
Sleeping
Sleeping
Update templates/inference.html
Browse files- templates/inference.html +7 -0
templates/inference.html
CHANGED
|
@@ -40,6 +40,13 @@
|
|
| 40 |
</select>
|
| 41 |
<input class="form-control" id="inputModel" rows="10" placeholder="custom HF model id user/model">
|
| 42 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
<div class="mb-3">
|
| 44 |
<label for="inputText" class="form-label">Text to Summarize</label>
|
| 45 |
<textarea class="form-control" id="inputText" rows="10" placeholder="Paste your long text here..."></textarea>
|
|
|
|
| 40 |
</select>
|
| 41 |
<input class="form-control" id="inputModel" rows="10" placeholder="custom HF model id user/model">
|
| 42 |
</div>
|
| 43 |
+
<div class="mb-3">
|
| 44 |
+
<label class="small">Temperature: <span id="temp-val" class="fw-bold">0.7</span></label>
|
| 45 |
+
<input type="range" class="form-range" id="temperature" min="0.1" max="1.5" value="0.7" step="0.1" oninput="document.getElementById('temp-val').innerText = this.value">
|
| 46 |
+
<label class="small">Top K: <span id="topk-val" class="fw-bold">50</span></label>
|
| 47 |
+
<input type="range" class="form-range" id="temperature" min="1" max="100" value="50" step="1" oninput="document.getElementById('topk-val').innerText = this.value">
|
| 48 |
+
|
| 49 |
+
</div>
|
| 50 |
<div class="mb-3">
|
| 51 |
<label for="inputText" class="form-label">Text to Summarize</label>
|
| 52 |
<textarea class="form-control" id="inputText" rows="10" placeholder="Paste your long text here..."></textarea>
|