Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 2, 2024
1 parent ac3eca8 commit ee662f3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ai_models_aurora/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,16 @@ def model(model_version, **kwargs):
# select with --model-version

models = {
"0.25-pretrained": Aurora2p5Pretrained,
"0.25-finetuned": Aurora2p5FineTuned,
"2.5-pretrained": Aurora2p5Pretrained,
"2.5-finetuned": Aurora2p5FineTuned,
"0.1-finetuned": Aurora0p1FineTuned,
"default": Aurora0p1FineTuned,
"latest": Aurora0p1FineTuned, # Backward compatibility
}

if model_version not in models:
LOG.error(f"Model version {model_version} not found, using default")
LOG.error(f"Available models: {list(models.keys())}")
raise ValueError(f"Model version {model_version} not found")

return models[model_version](**kwargs)

0 comments on commit ee662f3

Please sign in to comment.