Spaces:
Sleeping
Sleeping
, custom_objects={'CustomLayer': CustomLayer})
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import tensorflow as tf
|
3 |
-
model_0 = tf.keras.models.load_model('bestmodel.h5')
|
4 |
def classify_image(inp):
|
5 |
inp = inp.reshape((-1, 224, 224, 3))
|
6 |
prediction = model_0.predict(inp)
|
|
|
1 |
import gradio as gr
|
2 |
import tensorflow as tf
|
3 |
+
model_0 = tf.keras.models.load_model('bestmodel.h5', custom_objects={'CustomLayer': CustomLayer})
|
4 |
def classify_image(inp):
|
5 |
inp = inp.reshape((-1, 224, 224, 3))
|
6 |
prediction = model_0.predict(inp)
|