Update src/backend/run_eval_suite.py
Browse files
src/backend/run_eval_suite.py
CHANGED
@@ -77,10 +77,14 @@ def run_evaluation(eval_request: EvalRequest, task_names, num_fewshot, batch_siz
|
|
77 |
print(f"Selected Tasks: {task_names}")
|
78 |
|
79 |
url = os.environ.get("URL")
|
|
|
|
|
|
|
|
|
80 |
|
81 |
data = {"args": f"pretrained={eval_request.model}"}
|
82 |
print("datasending", data)
|
83 |
-
response = requests.post(url, json=data)
|
84 |
print("response, response", response)
|
85 |
results_full = {'results': {}, 'config': {}}
|
86 |
|
|
|
77 |
print(f"Selected Tasks: {task_names}")
|
78 |
|
79 |
url = os.environ.get("URL")
|
80 |
+
|
81 |
+
headers = {
|
82 |
+
'bypass-tunnel-reminder': 'anyvalue'
|
83 |
+
}
|
84 |
|
85 |
data = {"args": f"pretrained={eval_request.model}"}
|
86 |
print("datasending", data)
|
87 |
+
response = requests.post(url, json=data, headers=headers)
|
88 |
print("response, response", response)
|
89 |
results_full = {'results': {}, 'config': {}}
|
90 |
|