Skip to content

Commit

Permalink
enable dotenv to load env vars during training
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Oct 28, 2024
1 parent 276cb37 commit 344f9a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
from ml_collections.config_flags import config_flags
import logging
import os
from dotenv import load_dotenv

from knockknock import slack_sender

load_dotenv() # take environment variables from .env

FLAGS = flags.FLAGS

config_flags.DEFINE_config_file(
Expand Down

0 comments on commit 344f9a9

Please sign in to comment.