From c2ae31776ab13b558cb15d56d2377ca513bd6aee Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 6 Jun 2023 13:57:58 +0200 Subject: [PATCH] ensure wasm is present befor doing inference --- frontend/src/lib/infer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/infer.ts b/frontend/src/lib/infer.ts index 8d2c53ef88..c5061d00b9 100644 --- a/frontend/src/lib/infer.ts +++ b/frontend/src/lib/infer.ts @@ -15,6 +15,7 @@ export async function inferArgs( code: string, schema: Schema ): Promise { + await init(wasmUrl) const lastRun = get(loadSchemaLastRun) let inferedSchema: MainArgSignature if (lastRun && code == lastRun[0] && lastRun[1]) {