Skip to content

Commit

Permalink
fix (serve): added dict config handle in serve model postprocess func
Browse files Browse the repository at this point in the history
  • Loading branch information
spthermo committed Oct 9, 2024
1 parent 330c746 commit ffed4cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moai/serve/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ def postprocess(
log.debug(f"Postprocessing outputs:\n{data['__moai__']}")
outs = [] # TODO: corner case with no postproc crashes, fix it
for k, p in self.postproc.items():
if isinstance(p, omegaconf.dictconfig.DictConfig):
continue
res = p(data, data["__moai__"]["json"])
if len(outs) == 0:
outs = res
Expand Down

0 comments on commit ffed4cf

Please sign in to comment.