Kalei commited on
Commit
b1a69de
·
verified ·
1 Parent(s): 134ac54

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +7 -0
utils.py CHANGED
@@ -24,6 +24,13 @@ ENTITY_CHOICES = ('identity', 'hotkey', 'coldkey')
24
  LOCAL_WANDB_PATH = './data/wandb'
25
  USERNAME = 'opentensor'
26
 
 
 
 
 
 
 
 
27
  api = wandb.Api(timeout=600)
28
 
29
  IDENTITIES = {
 
24
  LOCAL_WANDB_PATH = './data/wandb'
25
  USERNAME = 'opentensor'
26
 
27
+ # Set the WANDB_API_KEY environment variable to 'anonymous'
28
+ os.environ["WANDB_API_KEY"] = "anonymous"
29
+
30
+ # Initialize wandb with anonymous login
31
+ wandb.login(anonymous='must')
32
+
33
+ # Your existing code
34
  api = wandb.Api(timeout=600)
35
 
36
  IDENTITIES = {