KaburaJ commited on
Commit
7ff5936
·
1 Parent(s): 9791f6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def main():
106
 
107
  if pred_button:
108
 
109
- outputs = float(model.predict(image))
110
  _, y_hat = outputs.max(1)
111
  predicted_idx = str(y_hat.item())
112
  right_column.title("Prediction")
 
106
 
107
  if pred_button:
108
 
109
+ outputs = int(model.predict(image))
110
  _, y_hat = outputs.max(1)
111
  predicted_idx = str(y_hat.item())
112
  right_column.title("Prediction")