Skip to content

Commit cf2e23b

Browse files
committed
model_path from doc opt
1 parent 1879a0b commit cf2e23b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/article_relevance/relevance_prediction_parquet.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,16 @@ def main():
425425
output_path = opt['--output_path']
426426
send_xdd = opt['--send_xdd']
427427

428-
# /models directory is a mounted volume, containing the model object
429-
models = os.listdir("/models")
430-
models = [f for f in models if f.endswith(".joblib")]
428+
# # /models directory is a mounted volume, containing the model object
429+
# models = os.listdir("/models")
430+
# models = [f for f in models if f.endswith(".joblib")]
431431

432-
if models:
433-
model_path = os.path.join("/models", models[0])
434-
else:
435-
model_path = ""
432+
# if models:
433+
# model_path = os.path.join("/models", models[0])
434+
# else:
435+
# model_path = ""
436+
437+
model_path = opt['--model_path']
436438

437439
metadata_df = crossref_extract(doi_list_file_path)
438440

0 commit comments

Comments
 (0)