Skip to content

Commit a5c02d4

Browse files
committed
fixup!
1 parent 80b28fc commit a5c02d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/run_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from replicate import AsyncReplicate
44

5-
client = AsyncReplicate()
5+
replicate = AsyncReplicate()
66

77
# https://replicate.com/stability-ai/sdxl
88
model_version = "stability-ai/sdxl:39ed52f2a78e934b3ba6e2a89f5b1c712de7dfea535525255b1aa35c5565e08b"
@@ -11,7 +11,7 @@
1111

1212
async def main() -> None:
1313
# Create tasks with asyncio.gather directly
14-
tasks = [client.run(model_version, input={"prompt": prompt}) for prompt in prompts]
14+
tasks = [replicate.run(model_version, input={"prompt": prompt}) for prompt in prompts]
1515

1616
results = await asyncio.gather(*tasks)
1717
print(results)

0 commit comments

Comments
 (0)