Skip to content

Commit b6043c9

Browse files
committed
feat: added option for api auth
1 parent 25c69d0 commit b6043c9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/webapp/routers/data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def get_upload_url(
10241024

10251025

10261026
# Get SHAP Values for Inference
1027-
@router.get("/{inst_id}/inference/top-features/{run_id}", response_model=str)
1027+
@router.get("/{inst_id}/inference/top-features/{run_id}")
10281028
def get_top_features(
10291029
inst_id: str,
10301030
run_id: str,
@@ -1068,7 +1068,7 @@ def get_top_features(
10681068

10691069

10701070
# Get SHAP Values for Inference
1071-
@router.get("/{inst_id}/inference/support-overview/{run_id}", response_model=str)
1071+
@router.get("/{inst_id}/inference/support-overview/{run_id}")
10721072
def get_support_overview(
10731073
inst_id: str,
10741074
run_id: str,
@@ -1111,7 +1111,7 @@ def get_support_overview(
11111111
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(ve))
11121112

11131113

1114-
@router.get("/{inst_id}/inference/feature_value/{run_id}", response_model=str)
1114+
@router.get("/{inst_id}/inference/feature_value/{run_id}")
11151115
def get_feature_value(
11161116
inst_id: str,
11171117
run_id: str,
@@ -1154,7 +1154,7 @@ def get_feature_value(
11541154
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(ve))
11551155

11561156

1157-
@router.get("/{inst_id}/training/confusion_matrix/{run_id}", response_model=str)
1157+
@router.get("/{inst_id}/training/confusion_matrix/{run_id}")
11581158
def get_confusion_matrix(
11591159
inst_id: str,
11601160
run_id: str,
@@ -1197,7 +1197,7 @@ def get_confusion_matrix(
11971197
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(ve))
11981198

11991199

1200-
@router.get("/{inst_id}/training/roc_curve/{run_id}", response_model=str)
1200+
@router.get("/{inst_id}/training/roc_curve/{run_id}")
12011201
def get_roc_curve(
12021202
inst_id: str,
12031203
run_id: str,

0 commit comments

Comments
 (0)