Spaces:
Runtime error
Runtime error
John Smith
commited on
Commit
·
2192213
1
Parent(s):
0e74aec
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
from matplotlib import pyplot as plt
|
5 |
model = load_model('eee.keras')
|
6 |
def image_mod(image_mod):
|
7 |
-
img = cv2.imread(
|
8 |
resize = tf.image.resize(img, (256, 256))
|
9 |
plt.imshow(resize.numpy().astype(int))
|
10 |
yhat = model.predict(np.expand_dims(resize,0))
|
|
|
4 |
from matplotlib import pyplot as plt
|
5 |
model = load_model('eee.keras')
|
6 |
def image_mod(image_mod):
|
7 |
+
img = cv2.imread(image_mod)
|
8 |
resize = tf.image.resize(img, (256, 256))
|
9 |
plt.imshow(resize.numpy().astype(int))
|
10 |
yhat = model.predict(np.expand_dims(resize,0))
|