Spaces:
Running
Running
Petra Vidnerova commited on
Commit ·
b2c029c
1
Parent(s): b8c5dfc
bigger timeout
Browse files- utils/score.py +1 -1
- utils/utils.py +1 -1
utils/score.py
CHANGED
|
@@ -295,7 +295,7 @@ class Evaluator():
|
|
| 295 |
"filter": "openalex:" + "|".join(works),
|
| 296 |
"select": "id,title,abstract_inverted_index"
|
| 297 |
}
|
| 298 |
-
data = send_request(url, params,
|
| 299 |
if data is None:
|
| 300 |
raise ValueError("Error during batched fetching of reference data.")
|
| 301 |
for item in data["results"]:
|
|
|
|
| 295 |
"filter": "openalex:" + "|".join(works),
|
| 296 |
"select": "id,title,abstract_inverted_index"
|
| 297 |
}
|
| 298 |
+
data = send_request(url, params, 50, only_cached=self.only_cached)
|
| 299 |
if data is None:
|
| 300 |
raise ValueError("Error during batched fetching of reference data.")
|
| 301 |
for item in data["results"]:
|
utils/utils.py
CHANGED
|
@@ -61,7 +61,7 @@ def download_paper_data(alexid, select: str, only_cached=False):
|
|
| 61 |
params = {
|
| 62 |
"select": select
|
| 63 |
}
|
| 64 |
-
timeout =
|
| 65 |
data = send_request(full_url, params, timeout)
|
| 66 |
if data is None:
|
| 67 |
return
|
|
|
|
| 61 |
params = {
|
| 62 |
"select": select
|
| 63 |
}
|
| 64 |
+
timeout = 50
|
| 65 |
data = send_request(full_url, params, timeout)
|
| 66 |
if data is None:
|
| 67 |
return
|