From 368c41cb5b8c441e3574259fe1af542f92a05be1 Mon Sep 17 00:00:00 2001 From: Jhen Date: Wed, 2 Aug 2023 16:14:40 +0800 Subject: [PATCH] server : make n_probs max to 10 for easy scroll --- examples/server/public/index.html | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 1621a07fd..290a2c42f 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -102,6 +102,18 @@ padding: 0.5em; } + .prob-set { + padding: 0.3em; + border-bottom: 1px solid #ccc; + } + + .popover-content { + position: absolute; + background-color: #777; + border: 1px solid #ccc; + padding: 0.2em; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + } textarea { padding: 5px; @@ -397,7 +409,7 @@ ${FloatField({label: "Mirostat eta", max: 1.0, min: 0.0, name: "mirostat_eta", step: 0.01, value: params.value.mirostat_eta})}
- ${IntField({label: "Show Probabilities", max: 100, min: 0, name: "n_probs", value: params.value.n_probs})} + ${IntField({label: "Show Probabilities", max: 10, min: 0, name: "n_probs", value: params.value.n_probs})}
@@ -425,7 +437,7 @@
${completion_probabilities.map((cp, i) => { return html` -
+
${cp.probs.map((p, j) => { return html`
${props.popoverChildren}