Skip to content

Commit 6147db5

Browse files
committed
✏️ Fix inference text streaming example
1 parent f1bbdd5 commit 6147db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/inference/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ await hf.textGeneration({
7676
inputs: 'The answer to the universe is'
7777
})
7878

79-
for await const (output of hf.textGenerationStream({
79+
for await (const output of hf.textGenerationStream({
8080
model: "google/flan-t5-xxl",
8181
inputs: 'repeat "one two three four"'
8282
})) {

0 commit comments

Comments
 (0)