Skip to content

Commit

Permalink
对话面板显示逻辑更科学
Browse files Browse the repository at this point in the history
  • Loading branch information
l15y committed Jun 10, 2024
1 parent 8d47e57 commit 21d068b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ assets/tokenizer
assets/Config.toml
assets/index/sherpa-ncnn-wasm-main.data
*.7z
*.st
9 changes: 4 additions & 5 deletions assets/index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@

.float {
position: absolute !important;
transition: all 0.5s;
}

.float button {
Expand Down Expand Up @@ -202,8 +203,7 @@
}}</span>
</v-avatar>
<br />
<v-expand-transition>
<div v-if="hover" class="float">
<div :style="hover?'':'opacity: 0;'" class="float">
<v-icon v-if="!loading" large text :color="color"
@click="delete_current_conversation(current_conversation)">
mdi-delete
Expand All @@ -216,7 +216,6 @@
mdi-pencil
</v-icon>
</div>
</v-expand-transition>
</div>
</v-hover>

Expand Down Expand Up @@ -597,7 +596,7 @@ <h1>参数管理</h1>
base_line.choice = '都不是'
base_line = base_line.perplexity
results.forEach(i => i.perplexity = i.perplexity / base_line)
if (results[0].perplexity > 0.15)
if (results[0].perplexity > 0.05)
name = '都不是'
else
name = results[0].choice
Expand All @@ -618,7 +617,7 @@ <h1>参数管理</h1>
base_line.choice = '都不是'
base_line = base_line.perplexity
results.forEach(i => i.perplexity = i.perplexity / base_line)
if (results[0].perplexity > 0.3)
if (results[0].perplexity > 0.1)
content = '都不是'
else
content = results[0].choice
Expand Down

0 comments on commit 21d068b

Please sign in to comment.