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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,7 +5,6 @@ import numpy as np
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
 
@@ -30,7 +29,7 @@ def predict_regression(image):
30
  # Create Gradio interface
31
  input_image = gr.Image()
32
  output_text = gr.Textbox(label="Predicted Value")
33
- interface = gr.Interface(fn=predict_regression,
34
  inputs=input_image,
35
  outputs=gr.Label(),
36
  examples=["images/abra.gif", "images/Aerodactyl.png", "images/Alakazam.png", "images/arbok.jpg", "images/Arcanine.png" ],
 
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
 
 
29
  # Create Gradio interface
30
  input_image = gr.Image()
31
  output_text = gr.Textbox(label="Predicted Value")
32
+ interface = gr.Interface(fn=predict_classification,
33
  inputs=input_image,
34
  outputs=gr.Label(),
35
  examples=["images/abra.gif", "images/Aerodactyl.png", "images/Alakazam.png", "images/arbok.jpg", "images/Arcanine.png" ],