Spaces:
Running
Running
Commit
·
3d15757
1
Parent(s):
b9eb2d7
Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,8 @@ def mmlu_display_question_answer(question, cot, request: gr.Request):
|
|
52 |
warmup_test = ["llama"]
|
53 |
def warmup(model_list=warmup_test, model_inference_endpoints=inference_endpoint):
|
54 |
for i in range(len(model_list)):
|
55 |
-
API_URL = model_inference_endpoints[model_list[i]["API_URL"]
|
56 |
-
headers = model_inference_endpoints[model_list[i]["headers"]
|
57 |
headers["Authorization"] += HF_TOKEN
|
58 |
|
59 |
def query(payload):
|
|
|
52 |
warmup_test = ["llama"]
|
53 |
def warmup(model_list=warmup_test, model_inference_endpoints=inference_endpoint):
|
54 |
for i in range(len(model_list)):
|
55 |
+
API_URL = model_inference_endpoints[model_list[i]]["API_URL"]
|
56 |
+
headers = model_inference_endpoints[model_list[i]]["headers"]
|
57 |
headers["Authorization"] += HF_TOKEN
|
58 |
|
59 |
def query(payload):
|