KaburaJ commited on
Commit
3f62206
·
1 Parent(s): 10d2426

Update app.py

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