Spaces:
Runtime error
Runtime error
sabre-code
commited on
Commit
•
463a8cc
1
Parent(s):
8914c8c
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ model = load_model('myModel.hdf5')
|
|
6 |
|
7 |
import gradio as gr
|
8 |
from gradio import inputs
|
|
|
|
|
|
|
9 |
def classify(img):
|
10 |
img_array = tf.keras.utils.img_to_array(img)
|
11 |
img_array = tf.expand_dims(img_array, 0) # Create a batch
|
|
|
6 |
|
7 |
import gradio as gr
|
8 |
from gradio import inputs
|
9 |
+
|
10 |
+
class_names = ['daisy', 'dandelion', 'roses', 'sunflowers', 'tulips']
|
11 |
+
|
12 |
def classify(img):
|
13 |
img_array = tf.keras.utils.img_to_array(img)
|
14 |
img_array = tf.expand_dims(img_array, 0) # Create a batch
|