Skip to content

Commit

Permalink
fix logprobs ui
Browse files Browse the repository at this point in the history
  • Loading branch information
sceuick committed Nov 10, 2024
1 parent 54a91e6 commit cbef127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/pages/Chat/components/LogProbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const LogProbs: Component<{ msg: AppSchema.ChatMessage }> = (props) => {
})
return (
<Show when={props.msg.meta?.probs}>
<div class="min-h-48 mb-2 flex h-48 w-full flex-col gap-1">
<div class="mb-2 flex w-full flex-col gap-1">
<b class="text-md">Token Probabilities</b>
<div class="mb-2 text-sm">
<For each={props.msg.meta.probs}>
Expand All @@ -39,7 +39,7 @@ export const LogProbs: Component<{ msg: AppSchema.ChatMessage }> = (props) => {
</For>
</div>

<div class="flex flex-wrap gap-1">
<div class="min-h-16 flex h-16 flex-wrap gap-1">
<Show when={probs().length}>
<For each={probs()}>
{(item) => {
Expand Down
2 changes: 1 addition & 1 deletion web/shared/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const Pill: Component<{

return (
<span
class={`flex items-center border-[1px] px-2 py-1 ${props.class || ''}`}
class={`flex h-fit items-center border-[1px] px-2 py-1 ${props.class || ''}`}
style={bg()}
onClick={props.onClick}
classList={{
Expand Down

0 comments on commit cbef127

Please sign in to comment.