Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def process_image(image):
|
|
42 |
img /= 255.0
|
43 |
img = np.expand_dims(img, axis=0)
|
44 |
|
45 |
-
layer_model = Model(inputs=autoencoder.input, outputs=autoencoder.layers[
|
46 |
|
47 |
encoded_array = layer_model.predict(img)
|
48 |
|
|
|
42 |
img /= 255.0
|
43 |
img = np.expand_dims(img, axis=0)
|
44 |
|
45 |
+
layer_model = Model(inputs=autoencoder.input, outputs=autoencoder.layers[4].output)
|
46 |
|
47 |
encoded_array = layer_model.predict(img)
|
48 |
|