Skip to content

Commit

Permalink
Let kagglehub select latest version (keras-team#1342)
Browse files Browse the repository at this point in the history
This is a newly minted feature in kagglehub.

We should probably add a unit test for this, but probably after our
models are actually uploaded the hub.
  • Loading branch information
mattdangerw authored Dec 4, 2023
1 parent cee3b8c commit d041dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_nlp/utils/preset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_file(preset, path):
# Insert the kaggle framework into the handle.
if len(segments) == 3:
org, model, variant = segments
kaggle_handle = f"{org}/{model}/keras/{variant}/1"
kaggle_handle = f"{org}/{model}/keras/{variant}"
elif len(segments) == 4:
org, model, variant, version = segments
kaggle_handle = f"{org}/{model}/keras/{variant}/{version}"
Expand Down

0 comments on commit d041dcf

Please sign in to comment.