ProfessorLeVesseur commited on
Commit
3e07f55
1 Parent(s): f1688db

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -2
main.py CHANGED
@@ -98,8 +98,11 @@ def main():
98
  for index, row in student_metrics_df.iterrows():
99
  tree_diagram = visualization.build_tree_diagram(row)
100
 
101
- # Use st.expander to wrap the graphviz chart
102
- with st.expander(f"Student {index + 1} Decision Tree", expanded=False):
 
 
 
103
  st.graphviz_chart(tree_diagram.source)
104
 
105
  # Prepare input for the language model
 
98
  for index, row in student_metrics_df.iterrows():
99
  tree_diagram = visualization.build_tree_diagram(row)
100
 
101
+ # Get the student's name from the DataFrame
102
+ student_name = row['Student']
103
+
104
+ # Use st.expander to wrap the graphviz chart with the student's name
105
+ with st.expander(f"{student_name} Decision Tree", expanded=False):
106
  st.graphviz_chart(tree_diagram.source)
107
 
108
  # Prepare input for the language model