mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 06:49:03 +00:00
fix: matplotlib
This commit is contained in:
parent
ef300248ba
commit
85b2a63b6d
@ -148,7 +148,7 @@
|
||||
|
||||
executing = true;
|
||||
|
||||
document.pyodideMplTarget = document.getElementById('plt-canvas');
|
||||
document.pyodideMplTarget = document.getElementById(`plt-canvas-${id}`);
|
||||
|
||||
let pyodide = await loadPyodide({
|
||||
indexURL: '/pyodide/',
|
||||
@ -314,6 +314,6 @@ __builtins__.input = input`);
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div id="plt-canvas" />
|
||||
<div id="plt-canvas-{id}" />
|
||||
</div>
|
||||
{/if}
|
||||
|
@ -434,10 +434,10 @@
|
||||
{:else if message.content === ''}
|
||||
<Skeleton />
|
||||
{:else}
|
||||
{#each tokens as token}
|
||||
{#each tokens as token, tokenIdx}
|
||||
{#if token.type === 'code'}
|
||||
<CodeBlock
|
||||
id={message.id}
|
||||
id={`${message.id}-${tokenIdx}`}
|
||||
lang={token.lang}
|
||||
code={revertSanitizedResponseContent(token.text)}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user