Senayfre commited on
Commit
fd8b07a
·
1 Parent(s): e440838

added requirements

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ st.write("Upload an image.")
79
  uploaded_file = st.file_uploader("")
80
 
81
  if uploaded_file is not None:
82
- image = Image.open(uploaded_file)
83
  img = np.array(image)
84
  result = m.predict(img)
85
  st.write(f"I think this has {result[0][0]}(confidence: {round(result[0][1],2)})")
 
79
  uploaded_file = st.file_uploader("")
80
 
81
  if uploaded_file is not None:
82
+ image = PIL.Image.open(uploaded_file)
83
  img = np.array(image)
84
  result = m.predict(img)
85
  st.write(f"I think this has {result[0][0]}(confidence: {round(result[0][1],2)})")