mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
feat: code input support
This commit is contained in:
parent
01a656cc80
commit
302a17b3ed
@ -169,6 +169,8 @@
|
|||||||
const res = await pyodide.loadPackage('micropip');
|
const res = await pyodide.loadPackage('micropip');
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
|
pyodide.setStdin({ stdin: () => prompt() });
|
||||||
|
|
||||||
const micropip = pyodide.pyimport('micropip');
|
const micropip = pyodide.pyimport('micropip');
|
||||||
|
|
||||||
await micropip.set_index_urls('https://pypi.org/pypi/{package_name}/json');
|
await micropip.set_index_urls('https://pypi.org/pypi/{package_name}/json');
|
||||||
|
Loading…
Reference in New Issue
Block a user