reiflja1 commited on
Commit
05d40b5
1 Parent(s): 592d01e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
  import tensorflow as tf
3
  # Load the model
4
- model = tf.keras.models.load_model("pokemon_classifier_model.keras")
 
5
 
6
  def predict(image):
7
  img = tf.keras.preprocessing.image.img_to_array(image)
 
1
  import gradio as gr
2
  import tensorflow as tf
3
  # Load the model
4
+ model_path = "pokemon_classifier_model.keras"
5
+ model = tf.keras.models.load_model(model_path)
6
 
7
  def predict(image):
8
  img = tf.keras.preprocessing.image.img_to_array(image)