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
9d370c51
Unverified
Commit
9d370c51
authored
May 27, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 27, 2024
Browse files
Merge pull request #2612 from arkohut/support-py-for-run-code
feat: support py Python for code execution
parents
e2e96b57
5166e92f
Changes
1
Hide 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 @
9d370c51
...
@@ -215,7 +215,7 @@ __builtins__.input = input`);
...
@@ -215,7 +215,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