asmaa1 commited on
Commit
fd674d2
·
verified ·
1 Parent(s): 36b1996

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -2,6 +2,7 @@ import numpy as np
2
  import tensorflow as tf
3
  import gradio as gr
4
  from keras.models import load_model
 
5
  # Load the model
6
  model = load_model('brain_tumor.keras')
7
  labels = ['glioma', 'meningioma', 'notumor', 'pituitary']
 
2
  import tensorflow as tf
3
  import gradio as gr
4
  from keras.models import load_model
5
+ from tensorflow.keras.preprocessing.image import load_img
6
  # Load the model
7
  model = load_model('brain_tumor.keras')
8
  labels = ['glioma', 'meningioma', 'notumor', 'pituitary']