Alim2003 commited on
Commit
e7170e4
1 Parent(s): 370fcff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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])