Skip to content

Commit 3f64d12

Browse files
feat: clean up environment call outs
1 parent ed77e36 commit 3f64d12

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,14 @@ pip install --pre replicate[aiohttp]
8383
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
8484

8585
```python
86-
import os
8786
import asyncio
8887
from replicate import DefaultAioHttpClient
8988
from replicate import AsyncReplicate
9089

9190

9291
async def main() -> None:
9392
async with AsyncReplicate(
94-
bearer_token=os.environ.get(
95-
"REPLICATE_API_TOKEN"
96-
), # This is the default and can be omitted
93+
bearer_token="My Bearer Token",
9794
http_client=DefaultAioHttpClient(),
9895
) as replicate:
9996
prediction = await replicate.predictions.get(

0 commit comments

Comments
 (0)