nataliaElv commited on
Commit
3036563
1 Parent(s): 38565c8

Corrected strings

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -161,11 +161,11 @@ def update_dashboard(dataset_idx: Optional[int] = None):
161
  piechart = create_piechart(progress["users"])
162
 
163
  leaderboard_df = pd.DataFrame(
164
- list(progress["users"].items()), columns=["User", "Annotations"]
165
  )
166
 
167
  leaderboard_df = leaderboard_df.sort_values(
168
- "Annotations", ascending=False
169
  ).reset_index(drop=True)
170
 
171
  return progress_bar, piechart, leaderboard_df
@@ -173,7 +173,7 @@ def update_dashboard(dataset_idx: Optional[int] = None):
173
 
174
 
175
  with gr.Blocks() as demo:
176
- gr.Markdown("# Argilla Dataset Dashboard")
177
 
178
  dataset_choices = [(dataset.name, idx) for idx, dataset in enumerate(datasets)]
179
  datasets_dropdown = gr.Dropdown(
 
161
  piechart = create_piechart(progress["users"])
162
 
163
  leaderboard_df = pd.DataFrame(
164
+ list(progress["users"].items()), columns=["User", "Submitted records"]
165
  )
166
 
167
  leaderboard_df = leaderboard_df.sort_values(
168
+ "Submitted records", ascending=False
169
  ).reset_index(drop=True)
170
 
171
  return progress_bar, piechart, leaderboard_df
 
173
 
174
 
175
  with gr.Blocks() as demo:
176
+ gr.Markdown("# Argilla Progress Dashboard")
177
 
178
  dataset_choices = [(dataset.name, idx) for idx, dataset in enumerate(datasets)]
179
  datasets_dropdown = gr.Dropdown(