Spaces:
Runtime error
Runtime error
minimize background interval
Browse files- app.py +1 -1
- 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=
|
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=
|
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)
|