Skip to content

Commit d28c883

Browse files
committed
add url start in cases where just model is given
1 parent c13d913 commit d28c883

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fairscape_cli/commands/rocrate_commands.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,9 @@ def registerHuggingFaceModel(
10851085
except Exception as e:
10861086
click.echo(f"ERROR fetching HuggingFace metadata: {e}", err=True)
10871087
ctx.exit(code=1)
1088+
1089+
if 'https://' not in hf_metadata.get('landing_page_url'):
1090+
hf_metadata['landing_page_url'] = "https://huggingface.co/" + hf_metadata.get('landing_page_url')
10881091

10891092
# Build params, with CLI options overriding HuggingFace metadata
10901093
params = {

0 commit comments

Comments
 (0)