Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ else:
|
|
44 |
for uploaded_file in uploaded_files:
|
45 |
img = Image.open(uploaded_file)
|
46 |
st.image(img)
|
47 |
-
input = tf.
|
48 |
st.write("Model Prediction: " + cnn.apply({"params": params}, input))
|
49 |
st.write("Model Prediction type: " + type(cnn.apply({"params": params}, input)))
|
50 |
st.write("Model Prediction type dir: " + dir(cnn.apply({"params": params}, input)))
|
|
|
44 |
for uploaded_file in uploaded_files:
|
45 |
img = Image.open(uploaded_file)
|
46 |
st.image(img)
|
47 |
+
input = tf.cast(tf.image.resize(tf.convert_to_tensor(img), [50, 50]), tf.float32) / 255.
|
48 |
st.write("Model Prediction: " + cnn.apply({"params": params}, input))
|
49 |
st.write("Model Prediction type: " + type(cnn.apply({"params": params}, input)))
|
50 |
st.write("Model Prediction type dir: " + dir(cnn.apply({"params": params}, input)))
|