KaburaJ commited on
Commit
d403440
·
1 Parent(s): 0251cbb

Update app.py

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