Skip to content

Commit

Permalink
docs: update README.md (mlc-ai#582)
Browse files Browse the repository at this point in the history
synchrounous -> synchronous
  • Loading branch information
eltociear authored Sep 27, 2024
1 parent e92f21e commit 739d9d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ const engine = await CreateMLCEngine(
);
```

Under the hood, this factory function does the following steps for first creating an engine instance (synchrounous) and then loading the model (asynchrounous). You can also do them separately in your application.
Under the hood, this factory function does the following steps for first creating an engine instance (synchronous) and then loading the model (asynchronous). You can also do them separately in your application.

```typescript
import { MLCEngine } from "@mlc-ai/web-llm";

// This is a synchrounous call that returns immediately
// This is a synchronous call that returns immediately
const engine = new MLCEngine({
initProgressCallback: initProgressCallback
});

// This is an asynchrounous call and can take a long time to finish
// This is an asynchronous call and can take a long time to finish
await engine.reload(selectedModel);
```

Expand Down

0 comments on commit 739d9d9

Please sign in to comment.