Skip to content

Commit 5bd7474

Browse files
committed
feat: added option for api auth
1 parent 127cb12 commit 5bd7474

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/webapp/routers/data.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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)
10501028
def get_top_features(

0 commit comments

Comments
 (0)