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 ed77e36 commit 3f64d12Copy full SHA for 3f64d12
README.md
@@ -83,17 +83,14 @@ pip install --pre replicate[aiohttp]
83
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
84
85
```python
86
-import os
87
import asyncio
88
from replicate import DefaultAioHttpClient
89
from replicate import AsyncReplicate
90
91
92
async def main() -> None:
93
async with AsyncReplicate(
94
- bearer_token=os.environ.get(
95
- "REPLICATE_API_TOKEN"
96
- ), # This is the default and can be omitted
+ bearer_token="My Bearer Token",
97
http_client=DefaultAioHttpClient(),
98
) as replicate:
99
prediction = await replicate.predictions.get(
0 commit comments