Skip to content

Commit a54b01b

Browse files
committed
fixed endpoint issues
1 parent ad2b530 commit a54b01b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/webapp/routers/data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,9 @@ def get_model_cards(
13751375

13761376
try:
13771377
volume_path = f"/Volumes/staging_sst_01/{query_result[0][0].name}_gold/gold_volume/model-card-{model_name}.pdf"
1378-
with w.files.download(volume_path) as stream:
1379-
pdf_bytes = stream.read()
1378+
response = w.files.download(volume_path)
1379+
pdf_bytes = response.read()
1380+
13801381
except Exception as e:
13811382
raise HTTPException(500, detail=f"Failed to fetch model card: {e}")
13821383

0 commit comments

Comments
 (0)