Skip to content

Commit

Permalink
Adjusting code example
Browse files Browse the repository at this point in the history
  • Loading branch information
AG committed Apr 11, 2024
1 parent 7eaf083 commit 578b65a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ A demonstration of predictive text without an LLM, using permy.link

```
<script>
// Pass in the value of the text that should be predicted upon
const input = ...
window.addEventListener('tinypredict-ready', () => {
const input = "I would like to";
window.getPredictiveText(input).then(suggestions => {
// Use the suggestions object here.
window.getPredictiveText(input).then(suggestions => {
// Use the suggestions object here.
});
});
</script>
```
Expand Down

0 comments on commit 578b65a

Please sign in to comment.