Skip to content

Commit

Permalink
Update api.py (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsv authored Nov 4, 2024
1 parent 7a10735 commit 0596440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02-online-serving(fastapi)/projects/web_single/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_predictions() -> list[PredictionResponse]:
]

@router.get("/predict/{id}")
def get_preidction(id: int) -> PredictionResponse:
def get_prediction(id: int) -> PredictionResponse:
with Session(engine) as session:
prediction_result = session.get(PredictionResult, id)
if not prediction_result:
Expand Down

0 comments on commit 0596440

Please sign in to comment.