mirror of
https://github.com/open-webui/open-webui
synced 2024-11-29 07:21:01 +00:00
refac: include packages
This commit is contained in:
parent
7f90d813bd
commit
8766d2699a
@ -183,7 +183,10 @@
|
|||||||
code.includes('bs4') ? 'beautifulsoup4' : null,
|
code.includes('bs4') ? 'beautifulsoup4' : null,
|
||||||
code.includes('numpy') ? 'numpy' : null,
|
code.includes('numpy') ? 'numpy' : null,
|
||||||
code.includes('pandas') ? 'pandas' : null,
|
code.includes('pandas') ? 'pandas' : null,
|
||||||
code.includes('matplotlib') ? 'matplotlib' : null
|
code.includes('matplotlib') ? 'matplotlib' : null,
|
||||||
|
code.includes('scikit-learn') ? 'sklearn' : null,
|
||||||
|
code.includes('scipy') ? 'scipy' : null,
|
||||||
|
code.includes('re') ? 'regex' : null
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
console.log(packages);
|
console.log(packages);
|
||||||
@ -230,7 +233,9 @@ __builtins__.input = input`);
|
|||||||
code.includes('bs4') ? 'beautifulsoup4' : null,
|
code.includes('bs4') ? 'beautifulsoup4' : null,
|
||||||
code.includes('numpy') ? 'numpy' : null,
|
code.includes('numpy') ? 'numpy' : null,
|
||||||
code.includes('pandas') ? 'pandas' : null,
|
code.includes('pandas') ? 'pandas' : null,
|
||||||
code.includes('matplotlib') ? 'matplotlib' : null
|
code.includes('scikit-learn') ? 'sklearn' : null,
|
||||||
|
code.includes('scipy') ? 'scipy' : null,
|
||||||
|
code.includes('re') ? 'regex' : null
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
const pyodideWorker = new PyodideWorker();
|
const pyodideWorker = new PyodideWorker();
|
||||||
|
Loading…
Reference in New Issue
Block a user