Zekun Wu commited on
Commit
d0b9dea
1 Parent(s): dc6788d
Files changed (1) hide show
  1. pages/1_single_evaluation.py +9 -0
pages/1_single_evaluation.py CHANGED
@@ -68,6 +68,15 @@ else:
68
  df = pd.DataFrame(details)
69
  st.write(df)
70
 
 
 
 
 
 
 
 
 
 
71
  csv = df.to_csv(index=False)
72
  st.download_button(
73
  label="Download evaluation as CSV",
 
68
  df = pd.DataFrame(details)
69
  st.write(df)
70
 
71
+ data = {
72
+ 'Question': question,
73
+ 'Explanation': explanation,
74
+ **{detail['Principle']: detail['Score'] for detail in details}
75
+ }
76
+ df = pd.DataFrame([data])
77
+ st.write(df)
78
+
79
+ # Convert DataFrame to CSV for download
80
  csv = df.to_csv(index=False)
81
  st.download_button(
82
  label="Download evaluation as CSV",