tasmay commited on
Commit
bbb44f6
·
1 Parent(s): af5d2e9

modified model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ if file_name is not None:
12
  col1, col2 = st.columns(2)
13
  image = Image.open(file_name)
14
  col1.image(image, use_column_width=True)
15
- pred,pred_idx,probs = model.predict(image)
16
  col2.header("Prediction:")
17
  st.write('This is a ', pred, '!')
18
  else:
 
12
  col1, col2 = st.columns(2)
13
  image = Image.open(file_name)
14
  col1.image(image, use_column_width=True)
15
+ pred,pred_idx,probs = model.predict(PILImage.create(file_name))
16
  col2.header("Prediction:")
17
  st.write('This is a ', pred, '!')
18
  else: