faranbutt789 commited on
Commit
8663de3
·
verified ·
1 Parent(s): 9612749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -79,8 +79,7 @@ def predict(img):
79
  output = model(img_input)
80
  pred_class = torch.argmax(output, dim=1).item()
81
 
82
- return {class_ids[int2id[pred_class]]: 1.0}
83
-
84
  # ----------------------------
85
  # Gradio UI
86
  # ----------------------------
 
79
  output = model(img_input)
80
  pred_class = torch.argmax(output, dim=1).item()
81
 
82
+ return {class_ids[pred_class]: 1.0}
 
83
  # ----------------------------
84
  # Gradio UI
85
  # ----------------------------