mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
fix: code block execution
This commit is contained in:
parent
d2249921aa
commit
78cbdbc63f
@ -286,7 +286,7 @@ __builtins__.input = input`);
|
|||||||
<div class="p-1">{@html lang}</div>
|
<div class="p-1">{@html lang}</div>
|
||||||
|
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
{#if lang === 'python' || checkPythonCode(code)}
|
{#if ['', 'python'].includes(lang) && (lang === 'python' || checkPythonCode(code))}
|
||||||
{#if executing}
|
{#if executing}
|
||||||
<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
|
<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
|
||||||
{:else}
|
{:else}
|
||||||
|
Loading…
Reference in New Issue
Block a user