berangerthomas commited on
Commit
73f708b
·
1 Parent(s): 672611b

Add default value for error_df

Browse files
Files changed (1) hide show
  1. sections/alerts.py +3 -0
sections/alerts.py CHANGED
@@ -56,6 +56,9 @@ else:
56
  st.subheader("Overview of logs")
57
  col1, col2, col3 = st.columns(3)
58
 
 
 
 
59
  with col1:
60
  total_entries = len(df)
61
  st.metric("Total number of entries", total_entries)
 
56
  st.subheader("Overview of logs")
57
  col1, col2, col3 = st.columns(3)
58
 
59
+ # Initialize error_df as an empty DataFrame
60
+ error_df = pd.DataFrame()
61
+
62
  with col1:
63
  total_entries = len(df)
64
  st.metric("Total number of entries", total_entries)