Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import matplotlib.pyplot as plt
|
|
| 4 |
from tensorflow import keras
|
| 5 |
from tensorflow.keras import layers
|
| 6 |
from keras.datasets import mnist
|
|
|
|
| 7 |
|
| 8 |
# Function to display image, latent representation, and reconstructed image
|
| 9 |
def display_reconstruction(index, autoencoder, encoder, x_test):
|
|
|
|
| 4 |
from tensorflow import keras
|
| 5 |
from tensorflow.keras import layers
|
| 6 |
from keras.datasets import mnist
|
| 7 |
+
import cv2
|
| 8 |
|
| 9 |
# Function to display image, latent representation, and reconstructed image
|
| 10 |
def display_reconstruction(index, autoencoder, encoder, x_test):
|