Skip to content

Commit 0233f3c

Browse files
zekeerbridge
andauthored
Update README.md
Co-authored-by: F <[email protected]>
1 parent 92c53e1 commit 0233f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ import Replicate, { Prediction } from 'replicate';
128128
const replicate = new Replicate();
129129
const model = "black-forest-labs/flux-schnell";
130130
const prompt = "a 19th century portrait of a raccoon gentleman wearing a suit";
131-
const onProgress = (prediction: Prediction) => {
131+
function onProgress(prediction: Prediction) {
132132
console.log({ prediction });
133-
};
133+
}
134134

135135
const output = await replicate.run(model, { input: { prompt } }, onProgress)
136136
console.log({ output })

0 commit comments

Comments
 (0)