ProfessorLeVesseur commited on
Commit
a0a1ad9
·
verified ·
1 Parent(s): e4df3ae

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +13 -13
main.py CHANGED
@@ -94,20 +94,20 @@ def main():
94
  tree_diagram = visualization.build_tree_diagram(row)
95
  st.graphviz_chart(tree_diagram.source)
96
 
97
- # Render and prepare the diagram for download
98
- filename = f"{row['Student']}_decision_tree"
99
- filepath = download_tree_diagram(tree_diagram, filename)
100
 
101
- # Provide a download button
102
- with open(filepath, "rb") as file:
103
- st.download_button(
104
- label=f"Download {row['Student']}'s Diagram",
105
- data=file.read(),
106
- file_name=f"{filename}.png",
107
- mime="image/png",
108
- icon="↹",
109
- use_container_width=True
110
- )
111
 
112
  # Prepare input for the language model
113
  llm_input = ai_analysis.prepare_llm_input(student_metrics_df)
 
94
  tree_diagram = visualization.build_tree_diagram(row)
95
  st.graphviz_chart(tree_diagram.source)
96
 
97
+ # # Render and prepare the diagram for download
98
+ # filename = f"{row['Student']}_decision_tree"
99
+ # filepath = download_tree_diagram(tree_diagram, filename)
100
 
101
+ # # Provide a download button
102
+ # with open(filepath, "rb") as file:
103
+ # st.download_button(
104
+ # label=f"Download {row['Student']}'s Diagram",
105
+ # data=file.read(),
106
+ # file_name=f"{filename}.png",
107
+ # mime="image/png",
108
+ # icon="↹",
109
+ # use_container_width=True
110
+ # )
111
 
112
  # Prepare input for the language model
113
  llm_input = ai_analysis.prepare_llm_input(student_metrics_df)