Skip to content

Commit

Permalink
Update classification.md to correct a few function names (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitri Kennedy <[email protected]>
  • Loading branch information
davoscript and roodboi authored Jun 16, 2024
1 parent 9486edb commit cbdbcf5
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 cbdbcf5

Please sign in to comment.