Rathapoom commited on
Commit
80f8ca3
·
verified ·
1 Parent(s): 39a0ac0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -18
app.py CHANGED
@@ -202,24 +202,8 @@ def main():
202
  format="%.3f"
203
  )
204
 
205
- # Medication Selection with Checkboxes
206
- st.subheader("Select Medications to Display")
207
-
208
- # Add "Show All" Option
209
- show_all = st.checkbox("Show All Medications")
210
-
211
- # Define medications by rows
212
- medication_rows = [
213
- ["Alendronate", "Risedronate", "Ibandronate oral"],
214
- ["Zoledronate", "Ibandronate IV (3mg)"],
215
- ["Denosumab", "Denosumab + Teriparatide"],
216
- ["Teriparatide", "Teriparatide + Denosumab"],
217
- ["Romosozumab", "Romosozumab + Denosumab", "Romosozumab + Alendronate"],
218
- ["Romosozumab + Ibandronate", "Romosozumab + Zoledronate"]
219
- ]
220
-
221
- # Create checkboxes for each row
222
- selected_medications = select_medications()
223
 
224
  # Load constants and medication data
225
  medication_data = load_medication_data()
@@ -240,5 +224,6 @@ def main():
240
  # Display individual medication results
241
  display_results(filtered_predictions, selected_site)
242
 
 
243
  if __name__ == "__main__":
244
  main()
 
202
  format="%.3f"
203
  )
204
 
205
+ # Medication Selection
206
+ selected_medications = select_medications() # Ensure this is only called once
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
208
  # Load constants and medication data
209
  medication_data = load_medication_data()
 
224
  # Display individual medication results
225
  display_results(filtered_predictions, selected_site)
226
 
227
+
228
  if __name__ == "__main__":
229
  main()