Spaces:
Runtime error
Runtime error
Commit
β’
1356f44
1
Parent(s):
f45ec7c
Update app.py
Browse files
app.py
CHANGED
@@ -69,22 +69,14 @@ def donut_chart() -> alt.Chart:
|
|
69 |
Returns:
|
70 |
An altair chart with the donut chart.
|
71 |
"""
|
72 |
-
|
73 |
-
source_dataset, _ = obtain_source_target_datasets()
|
74 |
-
annotated_records = len(source_dataset)
|
75 |
-
pending_records = int(os.getenv("TARGET_RECORDS")) - annotated_records
|
76 |
-
|
77 |
source_dataset, results = obtain_source_target_datasets()
|
78 |
pending_records = len(source_dataset)
|
79 |
annotated_records = len(results)
|
80 |
-
print(pending_records)
|
81 |
-
print(f"{annotated_records} annotated")
|
82 |
-
print(f"{pending_records} pending")
|
83 |
|
84 |
source = pd.DataFrame(
|
85 |
{
|
86 |
"values": [annotated_records, pending_records],
|
87 |
-
"category": ["
|
88 |
}
|
89 |
)
|
90 |
|
|
|
69 |
Returns:
|
70 |
An altair chart with the donut chart.
|
71 |
"""
|
|
|
|
|
|
|
|
|
|
|
72 |
source_dataset, results = obtain_source_target_datasets()
|
73 |
pending_records = len(source_dataset)
|
74 |
annotated_records = len(results)
|
|
|
|
|
|
|
75 |
|
76 |
source = pd.DataFrame(
|
77 |
{
|
78 |
"values": [annotated_records, pending_records],
|
79 |
+
"category": ["Completed", "Remaining"], # Add a new column for categories
|
80 |
}
|
81 |
)
|
82 |
|