dvilasuero HF staff commited on
Commit
b62d049
1 Parent(s): 9b8f1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -78,7 +78,7 @@ def donut_chart() -> alt.Chart:
78
  source = pd.DataFrame(
79
  {
80
  "values": [annotated_records, pending_records],
81
- "category": ["Annotated", "Pending"], # Add a new column for categories
82
  }
83
  )
84
 
@@ -138,10 +138,10 @@ def obtain_top_5_users(user_ids_annotations: Dict[str, int]) -> pd.DataFrame:
138
  """
139
 
140
  dataframe = pd.DataFrame(
141
- user_ids_annotations.items(), columns=["Name", "Annotated Records"]
142
  )
143
- dataframe = dataframe.sort_values(by="Annotated Records", ascending=False)
144
- return dataframe.head(5)
145
 
146
 
147
  def main() -> None:
 
78
  source = pd.DataFrame(
79
  {
80
  "values": [annotated_records, pending_records],
81
+ "category": ["Submitted", "Pending"], # Add a new column for categories
82
  }
83
  )
84
 
 
138
  """
139
 
140
  dataframe = pd.DataFrame(
141
+ user_ids_annotations.items(), columns=["Name", "Submitted Records"]
142
  )
143
+ dataframe = dataframe.sort_values(by="Submitted Records", ascending=False)
144
+ return dataframe.head(10)
145
 
146
 
147
  def main() -> None: