ProfessorLeVesseur commited on
Commit
97994b8
1 Parent(s): 7f6a483

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -1
main.py CHANGED
@@ -89,10 +89,18 @@ def main():
89
  st.subheader("Student Evaluations")
90
  st.write(student_metrics_df[['Student', 'Evaluation']])
91
 
 
 
 
 
 
92
  # Build and display decision tree diagrams for each student
93
  for index, row in student_metrics_df.iterrows():
94
  tree_diagram = visualization.build_tree_diagram(row)
95
- st.graphviz_chart(tree_diagram.source)
 
 
 
96
 
97
  # Prepare input for the language model
98
  llm_input = ai_analysis.prepare_llm_input(student_metrics_df)
 
89
  st.subheader("Student Evaluations")
90
  st.write(student_metrics_df[['Student', 'Evaluation']])
91
 
92
+ # # Build and display decision tree diagrams for each student
93
+ # for index, row in student_metrics_df.iterrows():
94
+ # tree_diagram = visualization.build_tree_diagram(row)
95
+ # st.graphviz_chart(tree_diagram.source)
96
+
97
  # Build and display decision tree diagrams for each student
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
106
  llm_input = ai_analysis.prepare_llm_input(student_metrics_df)