We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c53e1 commit 0233f3cCopy full SHA for 0233f3c
README.md
@@ -128,9 +128,9 @@ import Replicate, { Prediction } from 'replicate';
128
const replicate = new Replicate();
129
const model = "black-forest-labs/flux-schnell";
130
const prompt = "a 19th century portrait of a raccoon gentleman wearing a suit";
131
-const onProgress = (prediction: Prediction) => {
+function onProgress(prediction: Prediction) {
132
console.log({ prediction });
133
-};
+}
134
135
const output = await replicate.run(model, { input: { prompt } }, onProgress)
136
console.log({ output })
0 commit comments