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
5e3c801c
Commit
5e3c801c
authored
May 16, 2024
by
Timothy J. Baek
Browse files
refac: no output
parent
b27b035c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/lib/components/chat/Messages/CodeBlock.svelte
src/lib/components/chat/Messages/CodeBlock.svelte
+6
-7
No files found.
src/lib/components/chat/Messages/CodeBlock.svelte
View file @
5e3c801c
...
@@ -188,6 +188,10 @@
...
@@ -188,6 +188,10 @@
result = pyodide.runPython(code);
result = pyodide.runPython(code);
if (!result) {
result = '[NO OUTPUT]';
}
console.log(result);
console.log(result);
console.log(stdout);
console.log(stdout);
console.log(stderr);
console.log(stderr);
...
@@ -243,15 +247,10 @@
...
@@ -243,15 +247,10 @@
<div class=" text-gray-500 text-xs mb-1">STDOUT/STDERR</div>
<div class=" text-gray-500 text-xs mb-1">STDOUT/STDERR</div>
<div class="text-sm">Running...</div>
<div class="text-sm">Running...</div>
</div>
</div>
{:else if stdout || stderr}
{:else if stdout || stderr
|| result
}
<div class="bg-[#202123] text-white px-4 py-4 rounded-b-lg">
<div class="bg-[#202123] text-white px-4 py-4 rounded-b-lg">
<div class=" text-gray-500 text-xs mb-1">STDOUT/STDERR</div>
<div class=" text-gray-500 text-xs mb-1">STDOUT/STDERR</div>
<div class="text-sm">{stdout || stderr}</div>
<div class="text-sm">{stdout || stderr || result}</div>
{#if result}
<div class=" text-gray-300 text-xs mt-2 mb-1">Result</div>
<div class="text-sm">{result}</div>
{/if}
</div>
</div>
{/if}
{/if}
</div>
</div>
...
...
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