Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
23859756
Commit
23859756
authored
May 20, 2024
by
Timothy J. Baek
Browse files
fix: >:(
parent
54677a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/lib/components/chat/Messages/CodeBlock.svelte
src/lib/components/chat/Messages/CodeBlock.svelte
+1
-1
src/lib/workers/pyodide.worker.ts
src/lib/workers/pyodide.worker.ts
+1
-1
No files found.
src/lib/components/chat/Messages/CodeBlock.svelte
View file @
23859756
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
try {
try {
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');
let packages = [
let packages = [
code.includes('requests') ? 'requests' : null,
code.includes('requests') ? 'requests' : null,
...
...
src/lib/workers/pyodide.worker.ts
View file @
23859756
...
@@ -42,7 +42,7 @@ async function loadPyodideAndPackages(packages: string[] = []) {
...
@@ -42,7 +42,7 @@ async function loadPyodideAndPackages(packages: string[] = []) {
const
micropip
=
self
.
pyodide
.
pyimport
(
'
micropip
'
);
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
);
await
micropip
.
install
(
packages
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment