Skip to content

Commit

Permalink
update import
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi committed Mar 8, 2024
1 parent 6f657ec commit 6b47f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmms_eval/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

for model_name, model_class in AVAILABLE_MODELS.items():
try:
globals()[model_class] = getattr(__import__(model_name, fromlist=[model_class]), model_class)
exec(f"from .{model_name} import {model_class}")
except ImportError:
pass

Expand Down

0 comments on commit 6b47f79

Please sign in to comment.