Spaces:
Runtime error
Runtime error
fizing colors
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def kpi_chart_remaining() -> alt.Chart:
|
|
132 |
# Create Altair chart
|
133 |
chart = (
|
134 |
alt.Chart(data)
|
135 |
-
.mark_text(fontSize=100, align="center", baseline="middle", color="
|
136 |
.encode(text="Value:N")
|
137 |
.properties(title=PENDING, width=250, height=200)
|
138 |
)
|
@@ -155,7 +155,7 @@ def kpi_chart_submitted() -> alt.Chart:
|
|
155 |
# Create Altair chart
|
156 |
chart = (
|
157 |
alt.Chart(data)
|
158 |
-
.mark_text(fontSize=100, align="center", baseline="middle", color="
|
159 |
.encode(text="Value:N")
|
160 |
.properties(title=NUMBER_ANNOTATED, width=250, height=200)
|
161 |
)
|
@@ -163,7 +163,7 @@ def kpi_chart_submitted() -> alt.Chart:
|
|
163 |
return chart
|
164 |
|
165 |
|
166 |
-
def
|
167 |
"""
|
168 |
This function returns a KPI chart with the total amount of annotators.
|
169 |
|
@@ -347,7 +347,7 @@ def main() -> None:
|
|
347 |
|
348 |
kpi_hall_plot = gr.Plot(label="Plot")
|
349 |
demo.load(
|
350 |
-
|
351 |
)
|
352 |
|
353 |
top_df_plot = gr.Dataframe(
|
|
|
132 |
# Create Altair chart
|
133 |
chart = (
|
134 |
alt.Chart(data)
|
135 |
+
.mark_text(fontSize=100, align="center", baseline="middle", color="#e68b39")
|
136 |
.encode(text="Value:N")
|
137 |
.properties(title=PENDING, width=250, height=200)
|
138 |
)
|
|
|
155 |
# Create Altair chart
|
156 |
chart = (
|
157 |
alt.Chart(data)
|
158 |
+
.mark_text(fontSize=100, align="center", baseline="middle", color="steelblue")
|
159 |
.encode(text="Value:N")
|
160 |
.properties(title=NUMBER_ANNOTATED, width=250, height=200)
|
161 |
)
|
|
|
163 |
return chart
|
164 |
|
165 |
|
166 |
+
def kpi_chart_total_annotators() -> alt.Chart:
|
167 |
"""
|
168 |
This function returns a KPI chart with the total amount of annotators.
|
169 |
|
|
|
347 |
|
348 |
kpi_hall_plot = gr.Plot(label="Plot")
|
349 |
demo.load(
|
350 |
+
kpi_chart_total_annotators, inputs=[], outputs=[kpi_hall_plot], every=update_interval_charts
|
351 |
)
|
352 |
|
353 |
top_df_plot = gr.Dataframe(
|