Timothy J. Baek 11 月之前
父节点
当前提交
1b6700425a
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/lib/components/chat/Messages/CodeBlock.svelte

+ 4 - 2
src/lib/components/chat/Messages/CodeBlock.svelte

@@ -184,7 +184,7 @@
 					code.includes('numpy') ? 'numpy' : null,
 					code.includes('pandas') ? 'pandas' : null,
 					code.includes('matplotlib') ? 'matplotlib' : null,
-					code.includes('scikit-learn') ? 'sklearn' : null,
+					code.includes('sklearn') ? 'scikit-learn' : null,
 					code.includes('scipy') ? 'scipy' : null,
 					code.includes('re') ? 'regex' : null
 				].filter(Boolean);
@@ -233,11 +233,13 @@ __builtins__.input = input`);
 			code.includes('bs4') ? 'beautifulsoup4' : null,
 			code.includes('numpy') ? 'numpy' : null,
 			code.includes('pandas') ? 'pandas' : null,
-			code.includes('scikit-learn') ? 'sklearn' : null,
+			code.includes('sklearn') ? 'scikit-learn' : null,
 			code.includes('scipy') ? 'scipy' : null,
 			code.includes('re') ? 'regex' : null
 		].filter(Boolean);
 
+		console.log(packages);
+
 		const pyodideWorker = new PyodideWorker();
 
 		pyodideWorker.postMessage({