davanstrien HF staff commited on
Commit
4fd027c
1 Parent(s): c9dab8a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def get_arxiv_result():
34
 
35
  def load_model():
36
  return SetFitModel.from_pretrained("librarian-bots/is_new_dataset_t`eacher_model")
37
- `
38
 
39
  def format_row_for_model(row):
40
  return f"TITLE: {row['title']} \n\nABSTRACT: {row['abstract']}"
@@ -75,7 +75,7 @@ def create_markdown(row):
75
  """
76
 
77
 
78
- @cached(cache=TTLCache(maxsize=100, ttl=CACHE_TIME))
79
  def prepare_data():
80
  print("Downloading arxiv results...")
81
  arxiv_results = get_arxiv_result()
 
34
 
35
  def load_model():
36
  return SetFitModel.from_pretrained("librarian-bots/is_new_dataset_t`eacher_model")
37
+
38
 
39
  def format_row_for_model(row):
40
  return f"TITLE: {row['title']} \n\nABSTRACT: {row['abstract']}"
 
75
  """
76
 
77
 
78
+ @cached(cache=TTLCache(maxsize=10, ttl=CACHE_TIME))
79
  def prepare_data():
80
  print("Downloading arxiv results...")
81
  arxiv_results = get_arxiv_result()