File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1023,28 +1023,6 @@ def get_upload_url(
10231023 raise HTTPException (status_code = status .HTTP_400_BAD_REQUEST , detail = str (ve ))
10241024
10251025
1026- # Get SHAP Values for Inference
1027- @router .get ("/inference/test" )
1028- def test () -> Any :
1029- """Returns a signed URL for uploading data to a specific institution."""
1030- # raise error at this level instead bc otherwise it's getting wrapped as a 200
1031-
1032- try :
1033- dbc = DatabricksControl ()
1034- rows = dbc .fetch_table_data (
1035- catalog_name = "dev_sst_02" ,
1036- schema_name = "default" ,
1037- table_name = "test_dataset" ,
1038- warehouse_id = "28e1cbabfe6deb87" ,
1039- limit = 500 ,
1040- )
1041-
1042- return rows
1043- except ValueError as ve :
1044- # Return a 400 error with the specific message from ValueError
1045- raise HTTPException (status_code = status .HTTP_400_BAD_REQUEST , detail = str (ve ))
1046-
1047-
10481026# Get SHAP Values for Inference
10491027@router .get ("/{inst_id}/inference/top-features/{run_id}" , response_model = str )
10501028def get_top_features (
You can’t perform that action at this time.
0 commit comments