We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad2b530 commit a54b01bCopy full SHA for a54b01b
1 file changed
src/webapp/routers/data.py
@@ -1375,8 +1375,9 @@ def get_model_cards(
1375
1376
try:
1377
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()
+ response = w.files.download(volume_path)
+ pdf_bytes = response.read()
1380
+
1381
except Exception as e:
1382
raise HTTPException(500, detail=f"Failed to fetch model card: {e}")
1383
0 commit comments