Skip to content

Commit

Permalink
Merge branch 'main' into changeset-release/main
Browse files Browse the repository at this point in the history
  • Loading branch information
roodboi authored Jun 16, 2024
2 parents 4b8106b + cbdbcf5 commit a85ce31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples/classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function classify(data: string): Promise<SimpleClassification> {
return classification
}

const classification = await createClassification(
const classification = await classify(
"Hello there I'm a nigerian prince and I want to give you money"
)

Expand Down Expand Up @@ -99,10 +99,10 @@ async function multi_classify(data: string): Promise<MultiClassification> {
return classification
}

const classification = await createClassification(
const classification = await multi_classify(
"My account is locked and I can't access my billing info. Phone is also broken"
)

console.log({ classification })
// { predicted_labels: [ 'billing', 'hardware' ] }
```
```

0 comments on commit a85ce31

Please sign in to comment.