Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ from tensorflow import keras
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
|
|
|
|
|
5 |
def greet(img):
|
6 |
img = np.expand_dims(img, axis = 0)
|
7 |
return np.argmax(model.predict(img)[0])
|
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
|
5 |
+
model = keras.models.load_model('my_model')
|
6 |
+
|
7 |
def greet(img):
|
8 |
img = np.expand_dims(img, axis = 0)
|
9 |
return np.argmax(model.predict(img)[0])
|