chansung commited on
Commit
7a143c1
β€’
1 Parent(s): 4bad4d8

minimize background interval

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. background.py +1 -1
app.py CHANGED
@@ -413,7 +413,7 @@ scheduler = BackgroundScheduler()
413
  scheduler.add_job(
414
  process_arxiv_ids,
415
  trigger='interval',
416
- seconds=3600,
417
  args=[
418
  gemini_api_key,
419
  dataset_repo_id,
 
413
  scheduler.add_job(
414
  process_arxiv_ids,
415
  trigger='interval',
416
+ seconds=300,
417
  args=[
418
  gemini_api_key,
419
  dataset_repo_id,
background.py CHANGED
@@ -29,7 +29,7 @@ def _extract_arxiv_id(text):
29
  else:
30
  return text
31
 
32
- def process_arxiv_ids(gemini_api, hf_repo_id, req_hf_repo_id, hf_token, restart_repo_id, how_many=10):
33
  arxiv_ids = []
34
 
35
  ds1 = datasets.load_dataset(req_hf_repo_id)
 
29
  else:
30
  return text
31
 
32
+ def process_arxiv_ids(gemini_api, hf_repo_id, req_hf_repo_id, hf_token, restart_repo_id, how_many=1):
33
  arxiv_ids = []
34
 
35
  ds1 = datasets.load_dataset(req_hf_repo_id)