Skip to content

Commit

Permalink
fix: restart playground
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Jan 19, 2024
1 parent c5ffa4b commit 530d545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/frontend/src/pages/ModelPlayground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@
placeholder="Type your prompt here"></textarea>

<div class="mt-4 text-right">
<Button disabled={!isPromptable()} inProgress={inProgress} on:click={() => askPlayground()}>Send Request</Button>
{#key playgroundState?.status}
<Button disabled={!isPromptable()} inProgress={inProgress} on:click={() => askPlayground()}>Send Request</Button>
{/key}
</div>

{#if result}
Expand Down

0 comments on commit 530d545

Please sign in to comment.