dvilasuero HF staff commited on
Commit
567a5be
1 Parent(s): 3d89639

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -38,6 +38,8 @@ minutes_past = (now - top_of_the_hour).seconds // 60
38
  # Display the time as X minutes ago
39
  st.markdown(f"**Last updated:** {minutes_past} minutes ago")
40
 
 
 
41
  # Extract the language from the metadata column and create a new column
42
  df['language'] = df['metadata'].apply(lambda x: x.get('language'))
43
 
@@ -61,6 +63,8 @@ st.table(language_counts_df)
61
  # Display the plot in the Streamlit app
62
  st.pyplot(fig)
63
 
 
 
64
  # Extract user_id from the is_edit_required field in the response column and count occurrences
65
  user_ids = df['responses'].apply(lambda x: x['is_edit_required']).explode().apply(lambda x: x['user_id'])
66
  user_id_counts = user_ids.value_counts()
 
38
  # Display the time as X minutes ago
39
  st.markdown(f"**Last updated:** {minutes_past} minutes ago")
40
 
41
+ st.header("Progress by Language")
42
+
43
  # Extract the language from the metadata column and create a new column
44
  df['language'] = df['metadata'].apply(lambda x: x.get('language'))
45
 
 
63
  # Display the plot in the Streamlit app
64
  st.pyplot(fig)
65
 
66
+ st.header("Leaderboard")
67
+
68
  # Extract user_id from the is_edit_required field in the response column and count occurrences
69
  user_ids = df['responses'].apply(lambda x: x['is_edit_required']).explode().apply(lambda x: x['user_id'])
70
  user_id_counts = user_ids.value_counts()