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