Skip to content

Commit

Permalink
fix callback runner to execute after predict (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketmaurya authored Jan 10, 2025
1 parent 747308a commit 501639b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litserve/loops/simple_loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def run_batched_loop(

callback_runner.trigger_event(EventTypes.BEFORE_PREDICT, lit_api=lit_api)
y = _inject_context(contexts, lit_api.predict, x)
callback_runner.trigger_event(EventTypes.BEFORE_PREDICT, lit_api=lit_api)
callback_runner.trigger_event(EventTypes.AFTER_PREDICT, lit_api=lit_api)

outputs = lit_api.unbatch(y)

Expand Down

0 comments on commit 501639b

Please sign in to comment.