ignacioct commited on
Commit
9a94aea
1 Parent(s): 2574805

updating v1 objective

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -106,16 +106,16 @@ def donut_chart_total() -> alt.Chart:
106
 
107
  def donut_chart_target() -> alt.Chart:
108
  """
109
- This function returns a donut chart with the progress of the target annotations.
110
- Counts each annotation response as an independent annotation.
111
 
112
  Returns:
113
  An altair chart with the donut chart.
114
  """
115
 
116
  # Load your data
117
- annotated_records = sum(user_ids_annotations.values())
118
- pending_records = int(os.getenv("TARGET_RECORDS")) - annotated_records
119
 
120
  # Prepare data for the donut chart
121
  source = pd.DataFrame(
 
106
 
107
  def donut_chart_target() -> alt.Chart:
108
  """
109
+ This function returns a donut chart with the progress of the total annotations, in terms of the v1 objective.
110
+ Counts each record that has been annotated at least once.
111
 
112
  Returns:
113
  An altair chart with the donut chart.
114
  """
115
 
116
  # Load your data
117
+ annotated_records = len(target_dataset)
118
+ pending_records = int(os.getenv("TARGET_ANNOTATIONS_V1")) - annotated_records
119
 
120
  # Prepare data for the donut chart
121
  source = pd.DataFrame(