Skip to content

Commit

Permalink
Update hypothesis template
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Jan 12, 2024
1 parent 9513390 commit 0471c9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/zero-shot-classification/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ self.addEventListener('message', async (event) => {
const split = text.split('\n');
for (const line of split) {
const output = await classifier(line, labels, {
hypothesis_template: 'This text is about {}.',
multi_label: true,
});
// Send the output back to the main thread
Expand Down

0 comments on commit 0471c9f

Please sign in to comment.