fmegahed commited on
Commit
c21f511
1 Parent(s): 6e991d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -8,6 +8,11 @@ import sklearn
8
  import gradio as gr
9
  import numpy as np
10
 
 
 
 
 
 
11
  def predict(age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hosp_division, hosp_locteach,
12
  hosp_bedsize, h_contrl, pay, anemia, atrial_fibrillation,
13
  cancer, cardiac_arrhythmias, carotid_artery_disease,
 
8
  import gradio as gr
9
  import numpy as np
10
 
11
+ ex_data = pd.read_csv('example_data.csv')
12
+ ex_data = ex_data.to_numpy()
13
+ ex_data = ex_data.tolist()
14
+
15
+
16
  def predict(age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hosp_division, hosp_locteach,
17
  hosp_bedsize, h_contrl, pay, anemia, atrial_fibrillation,
18
  cancer, cardiac_arrhythmias, carotid_artery_disease,