winamnd commited on
Commit
fffd891
·
verified ·
1 Parent(s): 3b9df4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def generate_ocr(method, img):
79
  probs = F.softmax(outputs.logits, dim=1) # Convert logits to probabilities
80
  prediction = torch.argmax(probs, dim=1).item()
81
 
82
- label_map = {0: "Spam", 1: "Not Spam"}
83
  label = label_map[prediction]
84
 
85
  # Save results using the external save function
 
79
  probs = F.softmax(outputs.logits, dim=1) # Convert logits to probabilities
80
  prediction = torch.argmax(probs, dim=1).item()
81
 
82
+ label_map = {0: "Not Spam", 1: "Spam"}
83
  label = label_map[prediction]
84
 
85
  # Save results using the external save function