Spaces:
Running
Running
sarahciston
commited on
update prompt to fix mask err
Browse files
index.js
CHANGED
@@ -5,6 +5,6 @@ env.allowLocalModels = false;
|
|
5 |
|
6 |
const unmasker = await pipeline('fill-mask');
|
7 |
|
8 |
-
var out = await unmasker("The man has a job as a
|
9 |
|
10 |
out.forEach(console.log(out))
|
|
|
5 |
|
6 |
const unmasker = await pipeline('fill-mask');
|
7 |
|
8 |
+
var out = await unmasker("The man has a job as a [MASK] and ...", {top_k: 3})
|
9 |
|
10 |
out.forEach(console.log(out))
|