dvilasuero HF staff commited on
Commit
3d2851f
β€’
1 Parent(s): 4ea87dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -193,6 +193,11 @@ def main() -> None:
193
 
194
  top5_dataframe = obtain_top_5_users(user_ids_annotations)
195
 
 
 
 
 
 
196
  with gr.Blocks() as demo:
197
  gr.Markdown(
198
  """
@@ -203,10 +208,9 @@ def main() -> None:
203
  """
204
  )
205
  gr.Markdown(
206
- """
207
  ## πŸš€ Contributors Progress
208
-
209
- How many records have been submitted, how many are still pending?
210
  """
211
  )
212
  plot = gr.Plot(label="Plot")
 
193
 
194
  top5_dataframe = obtain_top_5_users(user_ids_annotations)
195
 
196
+ annotated = len(target_dataset)
197
+ remaining = int(os.getenv("TARGET_RECORDS")) - annotated
198
+ percentage_completed = (annotated / int(os.getenv("TARGET_RECORDS"))) * 100
199
+
200
+
201
  with gr.Blocks() as demo:
202
  gr.Markdown(
203
  """
 
208
  """
209
  )
210
  gr.Markdown(
211
+ f"""
212
  ## πŸš€ Contributors Progress
213
+ **{annotated}** responses have been completed **({percentage_completed})**, there remains **{remaining}** responses to reach the target.
 
214
  """
215
  )
216
  plot = gr.Plot(label="Plot")