SushantGautam commited on
Commit
a4c4098
·
1 Parent(s): 071abd4

Add logging for submission display in display_submissions function

Browse files
Files changed (1) hide show
  1. gradio_interface.py +1 -0
gradio_interface.py CHANGED
@@ -66,6 +66,7 @@ def filter_submissions(task_type, search_query):
66
  def display_submissions(task_type="all", search_query=""):
67
  if submissions is None or ((datetime.now(timezone.utc) - last_submission_update_time).total_seconds() > 3600):
68
  refresh_submissions()
 
69
  filtered_submissions = filter_submissions(task_type, search_query)
70
  return [[s["user"], s["task"], s["submitted_time"]] for s in filtered_submissions]
71
 
 
66
  def display_submissions(task_type="all", search_query=""):
67
  if submissions is None or ((datetime.now(timezone.utc) - last_submission_update_time).total_seconds() > 3600):
68
  refresh_submissions()
69
+ print("Displaying submissions...", submissions)
70
  filtered_submissions = filter_submissions(task_type, search_query)
71
  return [[s["user"], s["task"], s["submitted_time"]] for s in filtered_submissions]
72