Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b443d61c
"mmdet3d/vscode:/vscode.git/clone" did not exist on "89cecc5e1a62c3cc18d68a9a0f13035b19e35ea7"
Commit
b443d61c
authored
May 28, 2024
by
arkohut
Browse files
feat: support py Python for code execution
parent
d43ee0fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/components/chat/Messages/CodeBlock.svelte
src/lib/components/chat/Messages/CodeBlock.svelte
+1
-1
No files found.
src/lib/components/chat/Messages/CodeBlock.svelte
View file @
b443d61c
...
@@ -213,7 +213,7 @@ __builtins__.input = input`);
...
@@ -213,7 +213,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 === 'py
thon
' || (lang === '' && checkPythonCode(code))}
{#if lang
.toLowerCase() === 'python' || lang.toLowerCase()
=== 'py' || (lang === '' && 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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment