winamnd commited on
Commit
1269497
·
verified ·
1 Parent(s): 14299e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def generate_ocr(method, img):
71
  probs = F.softmax(outputs.logits, dim=1) # Convert logits to probabilities
72
  prediction = torch.argmax(probs, dim=1).item()
73
 
74
- label_map = {0: "Not Spam", 1: "Spam"}
75
  label = label_map[prediction]
76
 
77
  # Save results using the external save function
 
71
  probs = F.softmax(outputs.logits, dim=1) # Convert logits to probabilities
72
  prediction = torch.argmax(probs, dim=1).item()
73
 
74
+ label_map = {0: "Spam", 1: "Not Spam"}
75
  label = label_map[prediction]
76
 
77
  # Save results using the external save function