Upload README.md with huggingface_hub
Browse files
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)
|