@@ -26,11 +26,11 @@ const prediction = await replicate
26
26
" stability-ai/stable-diffusion:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf"
27
27
)
28
28
.predict ({
29
- prompt: " painting of a cat by andy warhol " ,
29
+ prompt: " an astronaut riding on a horse " ,
30
30
});
31
31
32
32
console .log (prediction .output );
33
- // "https://replicate.delivery/pbxt/oeJLu7D1Y7UWESpzerfINqgwZgONSCubSjSw0msf8i4AP2BCB /out-0.png"
33
+ // "https://replicate.delivery/pbxt/nSREat5H54rxGJo1kk2xLLG2fpr0NBE0HBD5L0jszLoy8oSIA /out-0.png"
34
34
```
35
35
36
36
If you want to do something like updating progress while the prediction is
@@ -45,7 +45,7 @@ await replicate
45
45
)
46
46
.predict (
47
47
{
48
- prompt: " painting of a cat by andy warhol " ,
48
+ prompt: " an astronaut riding on a horse " ,
49
49
},
50
50
{
51
51
onUpdate : (prediction ) => {
@@ -66,7 +66,7 @@ const prediction = await replicate
66
66
" stability-ai/stable-diffusion:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf"
67
67
)
68
68
.createPrediction ({
69
- prompt: " painting of a cat by andy warhol " ,
69
+ prompt: " an astronaut riding on a horse " ,
70
70
});
71
71
72
72
console .log (prediction .status ); // "starting"
@@ -89,7 +89,7 @@ await replicate
89
89
)
90
90
.createPrediction (
91
91
{
92
- prompt: " painting of a cat by andy warhol " ,
92
+ prompt: " an astronaut riding on a horse " ,
93
93
},
94
94
{
95
95
// See https://replicate.com/docs/reference/http#create-prediction--webhook
0 commit comments