Skip to content

Commit 66bb574

Browse files
committed
document webhooks
Signed-off-by: Zeke Sikelianos <[email protected]>
1 parent 0e477fd commit 66bb574

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a Python client for [Replicate](https://replicate.com). It lets you run
44

55
> **👋** Check out an interactive version of this tutorial on [Google Colab](https://colab.research.google.com/drive/1K91q4p-OhL96FHBAVLsv9FlwFdu6Pn3c).
66
>
7-
> [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1K91q4p-OhL96FHBAVLsv9FlwFdu6Pn3c)
7+
> [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1K91q4p-OhL96FHBAVLsv9FlwFdu6Pn3c)
88
99
## Requirements
1010

@@ -97,8 +97,8 @@ iteration: 30, render:loss: -1.3994140625
9797
You can run a model and get a webhook when it completes, instead of waiting for it to finish:
9898

9999
```python
100-
model = replicate.models.get("kvfrans/clipdraw")
101-
version = model.versions.get("5797a99edc939ea0e9242d5e8c9cb3bc7d125b1eac21bda852e5cb79ede2cd9b")
100+
model = replicate.models.get("ai-forever/kandinsky-2.2")
101+
version = model.versions.get("ea1addaab376f4dc227f5368bbd8eff901820fd1cc14ed8cad63b29249e9d463")
102102
prediction = replicate.predictions.create(
103103
version=version,
104104
input={"prompt":"Watercolor painting of an underwater submarine"},
@@ -107,6 +107,8 @@ prediction = replicate.predictions.create(
107107
)
108108
```
109109

110+
For details on receiving webhooks, see [replicate.com/docs/webhooks](https://replicate.com/docs/webhooks).
111+
110112
## Compose models into a pipeline
111113

112114
You can run a model and feed the output into another model:

0 commit comments

Comments
 (0)