streiluc commited on
Commit
5c0a429
·
verified ·
1 Parent(s): c836a16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,10 +5,11 @@ import numpy as np
5
 
6
  # Load your custom regression model
7
  model_path = "pokemon.keras"
 
8
  model = tf.keras.models.load_model(model_path)
9
  model.summary() # Check if the model architecture loaded matches the expected one
10
 
11
- labels = ['0','1','2','3','4']
12
 
13
  # Define regression function
14
  def predict_regression(image):
 
5
 
6
  # Load your custom regression model
7
  model_path = "pokemon.keras"
8
+ model_path = "pokemon.weights.h5"
9
  model = tf.keras.models.load_model(model_path)
10
  model.summary() # Check if the model architecture loaded matches the expected one
11
 
12
+ labels = ['Abra', 'Aerodactyl', 'Alakazam', 'Arbok', 'Arcanine']
13
 
14
  # Define regression function
15
  def predict_regression(image):