mirror of
https://github.com/open-webui/open-webui
synced 2025-05-01 19:44:38 +00:00
Debug
This commit is contained in:
parent
0ab1c2c978
commit
b28ef9b837
@ -62,8 +62,6 @@ const executeCode = async (id: string, code: string) => {
|
||||
|
||||
try {
|
||||
|
||||
console.log('CODEEE', code);
|
||||
|
||||
// Dynamically load required packages based on imports in the Python code
|
||||
await self.pyodide.loadPackagesFromImports(code, {
|
||||
messageCallback: (msg: string) => {
|
||||
|
@ -71,6 +71,8 @@ self.onmessage = async (event) => {
|
||||
|
||||
console.log(event.data);
|
||||
|
||||
console.log('CODEEE', code);
|
||||
|
||||
// The worker copies the context in its own "memory" (an object mapping name to values)
|
||||
for (const key of Object.keys(context)) {
|
||||
self[key] = context[key];
|
||||
|
Loading…
Reference in New Issue
Block a user