Skip to content

Commit

Permalink
Use the defined mode for input/output types
Browse files Browse the repository at this point in the history
  • Loading branch information
8W9aG committed Oct 28, 2024
1 parent 2840fc7 commit 5cf3ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cog/server/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def start_shutdown() -> Any:
return JSONResponse({}, status_code=200)

try:
InputType, OutputType = cog_config.get_predictor_types(mode=Mode.PREDICT)
InputType, OutputType = cog_config.get_predictor_types(mode=mode)
except Exception: # pylint: disable=broad-exception-caught
msg = "Error while loading predictor:\n\n" + traceback.format_exc()
add_setup_failed_routes(app, started_at, msg)
Expand Down

0 comments on commit 5cf3ace

Please sign in to comment.