File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,18 @@ const replicate = new Replicate({
26
26
Run a model and await the result:
27
27
28
28
``` js
29
- const model = " owner/model:version-id " ;
30
- const input = { text : " Hello, world! " };
29
+ const model = " stability-ai/stable-diffusion:27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478 " ;
30
+ const input = { prompt : " a 19th century portrait of a raccoon gentleman wearing a suit " };
31
31
const output = await replicate .run (model, { input });
32
+ // ['https://replicate.delivery/pbxt/GtQb3Sgve42ZZyVnt8xjquFk9EX5LP0fF68NTIWlgBMUpguQA/out-0.png']
32
33
```
33
34
34
35
You can also run a model in the backround:
35
36
36
37
``` js
37
38
let prediction = await replicate .predictions .create ({
38
- version: " <MODEL VERSION> " ,
39
+ version: " 27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478 " ,
39
40
input: {
40
- // your model inputs need to be set here
41
41
prompt: " painting of a cat by andy warhol" ,
42
42
},
43
43
});
You can’t perform that action at this time.
0 commit comments