Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,10 @@ import gradio as gr
|
|
| 7 |
np.set_printoptions(suppress=True)
|
| 8 |
|
| 9 |
# Load the model
|
| 10 |
-
model = load_model("/
|
| 11 |
|
| 12 |
# Load the labels
|
| 13 |
-
class_names = open("/
|
| 14 |
|
| 15 |
# Create the array of the right shape to feed into the keras model
|
| 16 |
# The 'length' or number of images you can put into the array is
|
|
|
|
| 7 |
np.set_printoptions(suppress=True)
|
| 8 |
|
| 9 |
# Load the model
|
| 10 |
+
model = load_model("/keras_model.h5", compile=False)
|
| 11 |
|
| 12 |
# Load the labels
|
| 13 |
+
class_names = open("/labels.txt", "r").readlines()
|
| 14 |
|
| 15 |
# Create the array of the right shape to feed into the keras model
|
| 16 |
# The 'length' or number of images you can put into the array is
|