mirror of
https://github.com/open-webui/open-webui
synced 2025-04-24 16:32:11 +00:00
refac: no output
This commit is contained in:
parent
b27b035caa
commit
5e3c801c44
@ -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 @@
|
|||||||
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user