runaksh commited on
Commit
be4bd47
·
verified ·
1 Parent(s): d1a6d32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def classify_image(image):
17
  # Make prediction
18
  with torch.no_grad():
19
  outputs = model(**inputs)
20
- logits1 = outputs.logits1
21
  # Retrieve the highest probability class label index
22
  predicted_class_idx = logits1.argmax(-1).item()
23
  # Define a manual mapping of label indices to human-readable labels
 
17
  # Make prediction
18
  with torch.no_grad():
19
  outputs = model(**inputs)
20
+ logits1 = outputs.logits
21
  # Retrieve the highest probability class label index
22
  predicted_class_idx = logits1.argmax(-1).item()
23
  # Define a manual mapping of label indices to human-readable labels