Spaces:
Runtime error
Runtime error
Commit
·
f2ce17f
1
Parent(s):
47958af
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,10 @@ import pickle
|
|
12 |
import gradio as gr
|
13 |
|
14 |
def load_model():
|
15 |
-
save_path = '
|
16 |
-
with open(save_path, '
|
17 |
-
model =
|
|
|
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):
|