From 78cbdbc63fefbc795668920ab9409c63fb3c59cc Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 19 May 2024 05:16:31 -0700 Subject: [PATCH] fix: code block execution --- src/lib/components/chat/Messages/CodeBlock.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index 17fcc4f9c..ed817c22b 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -286,7 +286,7 @@ __builtins__.input = input`);
{@html lang}
- {#if lang === 'python' || checkPythonCode(code)} + {#if ['', 'python'].includes(lang) && (lang === 'python' || checkPythonCode(code))} {#if executing}
Running
{:else}