Skip to content

Commit

Permalink
comet_ml temporary fix(#8410)
Browse files Browse the repository at this point in the history
  • Loading branch information
stas00 authored Nov 9, 2020
1 parent e6d9cda commit 4ab5617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Comet needs to be imported before any ML frameworks
import comet_ml # noqa: F401

if comet_ml.config.get_config("comet.api_key"):
if hasattr(comet_ml, "config") and comet_ml.config.get_config("comet.api_key"):
_has_comet = True
else:
if os.getenv("COMET_MODE", "").upper() != "DISABLED":
Expand Down

0 comments on commit 4ab5617

Please sign in to comment.