hysts HF staff commited on
Commit
207e179
β€’
1 Parent(s): 25c0a98
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -24,7 +24,10 @@ DEFAULT_COLUMNS = [
24
 
25
 
26
  def update_num_papers(df: pd.DataFrame) -> str:
27
- return f"{len(df)} / {len(paper_list.df_raw)} ({len(df[df['claimed'].str.contains('βœ…')])} claimed)"
 
 
 
28
 
29
 
30
  def update_df(
 
24
 
25
 
26
  def update_num_papers(df: pd.DataFrame) -> str:
27
+ if "claimed" in df.columns:
28
+ return f"{len(df)} / {len(paper_list.df_raw)} ({len(df[df['claimed'].str.contains('βœ…')])} claimed)"
29
+ else:
30
+ return f"{len(df)} / {len(paper_list.df_raw)}"
31
 
32
 
33
  def update_df(