faurielle commited on
Commit
c68c1d5
·
verified ·
1 Parent(s): 0271264

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def predict_alzheimer(img):
16
  img_array = preprocess_input(img_array) # Preprocess the input as expected by ResNet50
17
 
18
  prediction = model.predict(img_array) # Predict using the model
19
- classes = ['Mild_Demented', 'Non_Demented', 'Very_Mild_Demented' ] # Specific names
20
  return {classes[i]: float(prediction[0][i]) for i in range(3)} # Return the prediction
21
 
22
  # Define Gradio interface
 
16
  img_array = preprocess_input(img_array) # Preprocess the input as expected by ResNet50
17
 
18
  prediction = model.predict(img_array) # Predict using the model
19
+ classes = ['Mild Demented', 'Non Demented', 'Very Mild Demented' ] # Specific names
20
  return {classes[i]: float(prediction[0][i]) for i in range(3)} # Return the prediction
21
 
22
  # Define Gradio interface