Spaces:
Sleeping
Sleeping
updating v1 objective
Browse files
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
|
110 |
-
Counts each
|
111 |
|
112 |
Returns:
|
113 |
An altair chart with the donut chart.
|
114 |
"""
|
115 |
|
116 |
# Load your data
|
117 |
-
annotated_records =
|
118 |
-
pending_records = int(os.getenv("
|
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(
|