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.
stream=True
1 parent 1066584 commit 4cc05adCopy full SHA for 4cc05ad
README.md
@@ -119,9 +119,11 @@ This is helpful when you want the ID of the prediction separate from its output.
119
120
```python
121
version = "02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3"
122
-prediction = replicate.predictions.create(version=version, input={
123
- "prompt": "Please write a haiku about llamas.",
124
-})
+prediction = replicate.predictions.create(
+ version=version,
+ input={"prompt": "Please write a haiku about llamas."},
125
+ stream=True,
126
+)
127
128
for event in prediction.stream():
129
print(str(event), end="")
0 commit comments