mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 06:18:20 +00:00
commit
3355577bac
@ -101,7 +101,7 @@
|
||||
try {
|
||||
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');
|
||||
|
||||
let packages = [
|
||||
code.includes('requests') ? 'requests' : null,
|
||||
|
@ -42,7 +42,7 @@ async function loadPyodideAndPackages(packages: string[] = []) {
|
||||
|
||||
const micropip = self.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');
|
||||
await micropip.install(packages);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user