Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Oct 26, 2024
1 parent 394aaa5 commit 6fbd52f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions delft/sequenceLabelling/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ def __init__(self,
word_emb_size = 0
self.embeddings = None
self.model_local_path = None
if wandb_config is not None and 'project' not in wandb_config:
self.wandb_config = wandb_config
else:
raise ValueError("The wandb_config should be a dictionary with at least the string parameter 'project'. ")
if wandb_config is not None:
if 'project' not in wandb_config:
self.wandb_config = wandb_config
else:
raise ValueError("The wandb_config should be a dictionary with at least the string parameter 'project'. ")

self.registry = load_resource_registry("delft/resources-registry.json")

Expand Down

0 comments on commit 6fbd52f

Please sign in to comment.