nielsr HF staff commited on
Commit
b864a26
1 Parent(s): 4c93240

More improvements

Browse files
Files changed (3) hide show
  1. app.py +1 -3
  2. daily_papers_enriched (3).csv +0 -0
  3. load_dataframe.py +1 -0
app.py CHANGED
@@ -71,9 +71,7 @@ def save_data(df: pd.DataFrame):
71
  # load as HF dataset
72
  dataset = Dataset.from_pandas(df)
73
 
74
- dataset.push_to_hub("nielsr/daily-papers-enriched")
75
-
76
- return
77
 
78
 
79
  def display_data(df: pd.DataFrame):
 
71
  # load as HF dataset
72
  dataset = Dataset.from_pandas(df)
73
 
74
+ raise NotImplementedError("To do")
 
 
75
 
76
 
77
  def display_data(df: pd.DataFrame):
daily_papers_enriched (3).csv DELETED
The diff for this file is too large to render. See raw diff
 
load_dataframe.py CHANGED
@@ -190,6 +190,7 @@ def process_data(start_date: str, end_date: str) -> pd.DataFrame:
190
  return dataframe
191
 
192
 
 
193
  def get_data() -> pd.DataFrame:
194
 
195
  # step 1: load pre-processed data
 
190
  return dataframe
191
 
192
 
193
+ @st.cache_data
194
  def get_data() -> pd.DataFrame:
195
 
196
  # step 1: load pre-processed data