AdithyaSNair commited on
Commit
f2ce17f
·
1 Parent(s): 47958af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -12,9 +12,10 @@ import pickle
12
  import gradio as gr
13
 
14
  def load_model():
15
- save_path = 'model.pkl'
16
- with open(save_path, 'rb') as file:
17
- model = pickle.load(file)
 
18
  return model
19
 
20
  def predict_dementia(images, model):
 
12
  import gradio as gr
13
 
14
  def load_model():
15
+ save_path = 'model_architecture.json'
16
+ with open(save_path, 'r') as file:
17
+ model = keras.models.model_from_json(file.read())
18
+ model.load_weights('model_weights.h5')
19
  return model
20
 
21
  def predict_dementia(images, model):