Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
disable br encoding
Browse files- backend/examples.py +1 -1
backend/examples.py
CHANGED
|
@@ -130,7 +130,7 @@ def build_infos(abs_path, datatype: str, dataset_name: str, db_key: str):
|
|
| 130 |
if eval_results_path.startswith("http://") or eval_results_path.startswith(
|
| 131 |
"https://"
|
| 132 |
):
|
| 133 |
-
response = requests.get(eval_results_path)
|
| 134 |
if response.status_code == 200:
|
| 135 |
results_data = response.json()
|
| 136 |
else:
|
|
|
|
| 130 |
if eval_results_path.startswith("http://") or eval_results_path.startswith(
|
| 131 |
"https://"
|
| 132 |
):
|
| 133 |
+
response = requests.get(eval_results_path, headers={"Accept-Encoding": "gzip, deflate"})
|
| 134 |
if response.status_code == 200:
|
| 135 |
results_data = response.json()
|
| 136 |
else:
|