Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import tensorflow as tf
|
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
model = tf.keras.models.load_model('model.h5')
|
| 7 |
-
labels = ['
|
| 8 |
|
| 9 |
def predict(image):
|
| 10 |
image = tf.image.resize(image, (224, 224))
|
|
|
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
model = tf.keras.models.load_model('model.h5')
|
| 7 |
+
labels = ['Class_A', 'Class_B'] # Update this after training
|
| 8 |
|
| 9 |
def predict(image):
|
| 10 |
image = tf.image.resize(image, (224, 224))
|