Spaces:
Running
Running
Update app.py
Browse files
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: "
|
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: "Spam", 1: "Not Spam"}
|
83 |
label = label_map[prediction]
|
84 |
|
85 |
# Save results using the external save function
|