fmegahed commited on
Commit
80b39bb
1 Parent(s): 06debfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -131,7 +131,9 @@ transapical_tavr = gr.inputs.Radio(choices=["No", "Yes"], label = 'Transapical T
131
 
132
 
133
  # Defining and launching the interface
134
- gr.Interface(predict, [age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hosp_division, hosp_locteach,
 
 
135
  hosp_bedsize, h_contrl, pay, anemia, atrial_fibrillation,
136
  cancer, cardiac_arrhythmias, carotid_artery_disease,
137
  chronic_kidney_disease, chronic_pulmonary_disease, coagulopathy,
@@ -141,8 +143,10 @@ gr.Interface(predict, [age, female, race, elective, aweekend, zipinc_qrtl, hosp_
141
  prior_cabg, prior_icd, prior_mi, prior_pci, prior_ppm, prior_tia_stroke,
142
  pulmonary_circulation_disorder, smoker, valvular_disease, weight_loss,
143
  endovascular_tavr, transapical_tavr],
144
- 'text',
145
- live=True,
146
- title = "Predicting In-Hospital Mortality After TAVR Using Preoperative Variables and Penalized Logistic Regression",
147
- description = "The app below utilizes the finalized logistic regression model with an l2 penalty based on the manuscript by Alhwiti et al. The manuscript will be submitted to JACC: Cardiovascular Interventions. The data used for model building is all TAVR procedures between 2012 and 2019 as reported in the HCUP NIS database. <br><br> The purpose of the app is to provide evidence-based clinical support for interventional cardiology. </b>.",
148
- css = 'https://bootswatch.com/5/journal/bootstrap.css').launch(debug = False);
 
 
 
131
 
132
 
133
  # Defining and launching the interface
134
+ iface = gr.Interface(
135
+ fn = predict,
136
+ inputs = [age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hosp_division, hosp_locteach,
137
  hosp_bedsize, h_contrl, pay, anemia, atrial_fibrillation,
138
  cancer, cardiac_arrhythmias, carotid_artery_disease,
139
  chronic_kidney_disease, chronic_pulmonary_disease, coagulopathy,
 
143
  prior_cabg, prior_icd, prior_mi, prior_pci, prior_ppm, prior_tia_stroke,
144
  pulmonary_circulation_disorder, smoker, valvular_disease, weight_loss,
145
  endovascular_tavr, transapical_tavr],
146
+ output = 'text',
147
+ live=True,
148
+ title = "Predicting In-Hospital Mortality After TAVR Using Preoperative Variables and Penalized Logistic Regression",
149
+ description = "The app below utilizes the finalized logistic regression model with an l2 penalty based on the manuscript by Alhwiti et al. The manuscript will be submitted to JACC: Cardiovascular Interventions. The data used for model building is all TAVR procedures between 2012 and 2019 as reported in the HCUP NIS database. <br><br> The purpose of the app is to provide evidence-based clinical support for interventional cardiology. </b>.",
150
+ css = 'https://bootswatch.com/5/journal/bootstrap.css')
151
+
152
+ iface.launch()