Skip to content

Commit

Permalink
Fix python classification example (#487)
Browse files Browse the repository at this point in the history
Argument was mssing from classifier function
  • Loading branch information
molntamas authored Dec 3, 2024
1 parent bfb66fd commit 1973648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ engine_args = EngineArgs(
engine="torch", model_warmup=True)
array = AsyncEngineArray.from_args([engine_args])

async def classifier():
async def classifier(engine: AsyncEmbeddingEngine):
async with engine:
predictions, usage = await engine.classify(sentences=sentences)
# or handle the async start / stop yourself.
Expand Down

0 comments on commit 1973648

Please sign in to comment.