Skip to content

Commit 96012f7

Browse files
authored
Merge pull request #134 from datakind/develop
MODEL cards
2 parents 0b8d5f2 + 635fb5d commit 96012f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/webapp/routers/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
DataSource,
2929
get_external_bucket_name,
3030
decode_url_piece,
31+
databricksify_inst_name,
3132
)
3233

3334
from ..database import (
@@ -1373,7 +1374,7 @@ def get_model_cards(
13731374
)
13741375

13751376
try:
1376-
volume_path = f"/Volumes/staging_sst_01/{query_result[0][0].name}_gold/gold_volume/model-card-{model_name}.pdf"
1377+
volume_path = f"/Volumes/staging_sst_01/{databricksify_inst_name(query_result[0][0].name)}_gold/gold_volume/model-card-{model_name}.pdf"
13771378
response = w.files.download(volume_path)
13781379
stream = cast(IO[bytes], response.contents)
13791380
pdf_bytes = stream.read()

0 commit comments

Comments
 (0)