From 23859756d8c3798c54462c77c4967e9b9e511bc4 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 20 May 2024 19:20:49 -0700 Subject: [PATCH] fix: >:( --- src/lib/components/chat/Messages/CodeBlock.svelte | 2 +- src/lib/workers/pyodide.worker.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index b9f6382ab..5881d109e 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -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, diff --git a/src/lib/workers/pyodide.worker.ts b/src/lib/workers/pyodide.worker.ts index ec2d12004..b27c00629 100644 --- a/src/lib/workers/pyodide.worker.ts +++ b/src/lib/workers/pyodide.worker.ts @@ -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); }