Rathapoom commited on
Commit
8800587
·
verified ·
1 Parent(s): 5edba5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -127,8 +127,8 @@ def generate_goal_summary(predictions, target_tscore=-2.4):
127
  return goal_reached_sorted
128
 
129
  # Display summary of goal-reaching medications
130
- def display_goal_summary(goal_summary):
131
- st.subheader("Goal Treatment Summary (T-score ≥ -2.4)")
132
 
133
  if not goal_summary:
134
  st.info("No medications reach the target T-score.")
@@ -240,10 +240,11 @@ def main():
240
  else:
241
  # Generate and display goal treatment summary using the specified T-score goal
242
  goal_summary = generate_goal_summary(filtered_predictions, target_tscore=treatment_goal_tscore)
243
- display_goal_summary(goal_summary)
244
 
245
  # Display individual medication results
246
  display_results(filtered_predictions, selected_site)
247
 
 
248
  if __name__ == "__main__":
249
  main()
 
127
  return goal_reached_sorted
128
 
129
  # Display summary of goal-reaching medications
130
+ def display_goal_summary(goal_summary, target_tscore):
131
+ st.subheader(f"Goal Treatment Summary (T-score ≥ {target_tscore:.1f})")
132
 
133
  if not goal_summary:
134
  st.info("No medications reach the target T-score.")
 
240
  else:
241
  # Generate and display goal treatment summary using the specified T-score goal
242
  goal_summary = generate_goal_summary(filtered_predictions, target_tscore=treatment_goal_tscore)
243
+ display_goal_summary(goal_summary, target_tscore=treatment_goal_tscore)
244
 
245
  # Display individual medication results
246
  display_results(filtered_predictions, selected_site)
247
 
248
+
249
  if __name__ == "__main__":
250
  main()