shubham680 commited on
Commit
960aec6
·
verified ·
1 Parent(s): 636b047

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -162,7 +162,7 @@ if uploaded_img is not None:
162
  st.image(img_resized, caption="Uploaded Image (Resized to 28x28)", use_container_width=True, channels="GRAY")
163
 
164
  # Create intermediate model to get output from selected conv layer
165
- func_model = Model(inputs=model.input, outputs=selected_layer.output)
166
  fm = func_model.predict(input_img)[0] # shape: (H, W, C)
167
 
168
  # Display feature maps
 
162
  st.image(img_resized, caption="Uploaded Image (Resized to 28x28)", use_container_width=True, channels="GRAY")
163
 
164
  # Create intermediate model to get output from selected conv layer
165
+ func_model = Model(inputs=model.layers[0].input, outputs=selected_layer.output)
166
  fm = func_model.predict(input_img)[0] # shape: (H, W, C)
167
 
168
  # Display feature maps