chansung commited on
Commit
64cc57f
β€’
1 Parent(s): 6f20169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,7 +84,7 @@ sorted_month = sorted(date_dict[last_year].keys())
84
  last_month = sorted_month[-1]
85
  sorted_day = sorted(date_dict[last_year][last_month].keys())
86
  last_day = sorted_day[-1]
87
- last_papers = list(set(date_dict[last_year][last_month][last_day]))
88
  selected_paper = last_papers[0]
89
 
90
  def filter_function(example, ids):
@@ -412,7 +412,7 @@ with gr.Blocks(css=STYLE, theme=gr.themes.Soft()) as demo:
412
  )
413
 
414
  papers_dd = gr.Dropdown(
415
- [paper["title"] for paper in last_papers],
416
  value=selected_paper["title"],
417
  label="Select paper title",
418
  interactive=True,
 
84
  last_month = sorted_month[-1]
85
  sorted_day = sorted(date_dict[last_year][last_month].keys())
86
  last_day = sorted_day[-1]
87
+ last_papers = date_dict[last_year][last_month][last_day]
88
  selected_paper = last_papers[0]
89
 
90
  def filter_function(example, ids):
 
412
  )
413
 
414
  papers_dd = gr.Dropdown(
415
+ list(set([paper["title"] for paper in last_papers])),
416
  value=selected_paper["title"],
417
  label="Select paper title",
418
  interactive=True,