Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
import matplotlib as mpl
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import gradio as gr
|
|
|
|
| 5 |
import pickle
|
| 6 |
import tensorflow as tf
|
| 7 |
from tensorflow import keras
|
|
@@ -14,11 +15,6 @@ fashion_mnist = keras.datasets.fashion_mnist
|
|
| 14 |
class_names = ["T-shirt/top", "Trouser", "Pullover", "Dress", "Coat",
|
| 15 |
"Sandal", "Shirt", "Sneaker", "Bag", "Ankle boot"]
|
| 16 |
|
| 17 |
-
%matplotlib inline
|
| 18 |
-
import numpy as np
|
| 19 |
-
import matplotlib as mpl
|
| 20 |
-
import matplotlib.pyplot as plt
|
| 21 |
-
|
| 22 |
|
| 23 |
# recommended way to save data into image
|
| 24 |
from PIL import Image
|
|
|
|
| 2 |
import matplotlib as mpl
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import gradio as gr
|
| 5 |
+
import numpy as np
|
| 6 |
import pickle
|
| 7 |
import tensorflow as tf
|
| 8 |
from tensorflow import keras
|
|
|
|
| 15 |
class_names = ["T-shirt/top", "Trouser", "Pullover", "Dress", "Coat",
|
| 16 |
"Sandal", "Shirt", "Sneaker", "Bag", "Ankle boot"]
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# recommended way to save data into image
|
| 20 |
from PIL import Image
|