PrakhAI commited on
Commit
58ed9ad
·
1 Parent(s): d8a8dd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -45,6 +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("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)))
 
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)))