cogniveon commited on
Commit
ec88959
1 Parent(s): 6e53397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,6 +3,7 @@ import torch
3
  import gradio as gr
4
  import keras
5
  import pandas as pd
 
6
 
7
  from transformers import pipeline
8
 
@@ -29,8 +30,8 @@ def get_murmur_from_recordings(audio):
29
 
30
 
31
  def get_patient_outcome(age, sex, height, weight, is_pregnant, murmur):
32
- model = keras.models.load_model('patient_outcome_classifier.keras')
33
-
34
  is_pregnant = 1 if is_pregnant else 0
35
  sex2int = {'Male': 0, 'Female': 1}
36
  sex = sex2int[sex]
 
3
  import gradio as gr
4
  import keras
5
  import pandas as pd
6
+ import joblib
7
 
8
  from transformers import pipeline
9
 
 
30
 
31
 
32
  def get_patient_outcome(age, sex, height, weight, is_pregnant, murmur):
33
+ # model = keras.models.load_model('patient_outcome_classifier.keras')
34
+ model = joblib.load("patient_outcome_classifier_v3.joblib")
35
  is_pregnant = 1 if is_pregnant else 0
36
  sex2int = {'Male': 0, 'Female': 1}
37
  sex = sex2int[sex]