grano1 commited on
Commit
f6ddd45
·
verified ·
1 Parent(s): 0c58d90

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +0 -1
README.md CHANGED
@@ -124,7 +124,6 @@ for example_data in all_articles:
124
  inputs = {key: value.to(device) for key, value in inputs.items()}
125
 
126
  # Make predictions with the model
127
- model.eval() # Set the model to evaluation mode
128
  with torch.no_grad(): # No gradient computation
129
  outs = model(**inputs)
130
  logits = outs[0] # Raw predictions (logits)
 
124
  inputs = {key: value.to(device) for key, value in inputs.items()}
125
 
126
  # Make predictions with the model
 
127
  with torch.no_grad(): # No gradient computation
128
  outs = model(**inputs)
129
  logits = outs[0] # Raw predictions (logits)