Spaces:
Runtime error
Runtime error
added requirements
Browse files
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)})")
|