Update README.md
Browse files
README.md
CHANGED
@@ -26,10 +26,8 @@ To use the model for making predictions, simply load the model and tokenizer, th
|
|
26 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
27 |
import torch
|
28 |
|
29 |
-
# Set up the device (GPU if available, otherwise CPU)
|
30 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
31 |
|
32 |
-
# Label mapping dictionary
|
33 |
label_mapping = {
|
34 |
0: "No need for visual processing",
|
35 |
1: "Requires visual processing",
|
|
|
26 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
27 |
import torch
|
28 |
|
|
|
29 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
30 |
|
|
|
31 |
label_mapping = {
|
32 |
0: "No need for visual processing",
|
33 |
1: "Requires visual processing",
|