Spaces:
Sleeping
Sleeping
Commit
·
05b511a
1
Parent(s):
e54ab55
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def mmlu_display_question_answer(question, cot, request: gr.Request):
|
|
| 47 |
else:
|
| 48 |
q = mmlu_question_selector_map[question]
|
| 49 |
|
| 50 |
-
return q["agent_response"]["llama"][0], q["agent_response"]["wizardlm"][0], q["agent_response"]["orca"][0], q["agent_response"]["llama"][1], q["agent_response"]["wizardlm"][1], q["agent_response"]["orca"][1], q["agent_response"]["llama"][2], q["agent_response"]["wizardlm"][2], q["agent_response"]["orca"][2]
|
| 51 |
|
| 52 |
|
| 53 |
def warmup(model_list=model_list, model_inference_endpoints=inference_endpoint):
|
|
@@ -240,10 +240,10 @@ with gr.Blocks() as demo:
|
|
| 240 |
|
| 241 |
with gr.Column():
|
| 242 |
with gr.Row(elem_id="model1_response"):
|
| 243 |
-
math_model1_output1 = gr.Textbox(label="Llama2🦙's 1️⃣st response")
|
| 244 |
math_model2_output1 = gr.Textbox(label="WizardLM🧙♂️'s 1️⃣st response")
|
| 245 |
math_model3_output1 = gr.Textbox(label="Orca🐬's 1️⃣st response")
|
| 246 |
-
math_summarization_text1 = gr.Textbox(
|
| 247 |
with gr.Row(elem_id="model2_response"):
|
| 248 |
math_model1_output2 = gr.Textbox(label="Llama2🦙's 2️⃣nd response")
|
| 249 |
math_model2_output2 = gr.Textbox(label="WizardLM🧙♂️'s 2️⃣nd response")
|
|
@@ -260,12 +260,12 @@ with gr.Blocks() as demo:
|
|
| 260 |
math_cot.select(
|
| 261 |
math_display_question_answer,
|
| 262 |
[math_question_list, math_cot],
|
| 263 |
-
[math_model1_output1, math_model2_output1, math_model3_output1, math_model1_output2, math_model2_output2, math_model3_output2, math_model1_output3, math_model2_output3, math_model3_output3]
|
| 264 |
)
|
| 265 |
math_question_list.change(
|
| 266 |
math_display_question_answer,
|
| 267 |
[math_question_list, math_cot],
|
| 268 |
-
[math_model1_output1, math_model2_output1, math_model3_output1, math_model1_output2, math_model2_output2, math_model3_output2, math_model1_output3, math_model2_output3, math_model3_output3]
|
| 269 |
)
|
| 270 |
|
| 271 |
|
|
|
|
| 47 |
else:
|
| 48 |
q = mmlu_question_selector_map[question]
|
| 49 |
|
| 50 |
+
return q["agent_response"]["llama"][0], q["agent_response"]["wizardlm"][0], q["agent_response"]["orca"][0], q["summarization"][0], q["agent_response"]["llama"][1], q["agent_response"]["wizardlm"][1], q["agent_response"]["orca"][1], q["summarization"][1], q["agent_response"]["llama"][2], q["agent_response"]["wizardlm"][2], q["agent_response"]["orca"][2]
|
| 51 |
|
| 52 |
|
| 53 |
def warmup(model_list=model_list, model_inference_endpoints=inference_endpoint):
|
|
|
|
| 240 |
|
| 241 |
with gr.Column():
|
| 242 |
with gr.Row(elem_id="model1_response"):
|
| 243 |
+
math_model1_output1 = gr.Textbox(label="Llama2🦙's 1️⃣st response")
|
| 244 |
math_model2_output1 = gr.Textbox(label="WizardLM🧙♂️'s 1️⃣st response")
|
| 245 |
math_model3_output1 = gr.Textbox(label="Orca🐬's 1️⃣st response")
|
| 246 |
+
math_summarization_text1 = gr.Textbox(label="Summarization 1️⃣")
|
| 247 |
with gr.Row(elem_id="model2_response"):
|
| 248 |
math_model1_output2 = gr.Textbox(label="Llama2🦙's 2️⃣nd response")
|
| 249 |
math_model2_output2 = gr.Textbox(label="WizardLM🧙♂️'s 2️⃣nd response")
|
|
|
|
| 260 |
math_cot.select(
|
| 261 |
math_display_question_answer,
|
| 262 |
[math_question_list, math_cot],
|
| 263 |
+
[math_model1_output1, math_model2_output1, math_model3_output1, math_summarization_text1, math_model1_output2, math_model2_output2, math_model3_output2, math_summarization_text2, math_model1_output3, math_model2_output3, math_model3_output3]
|
| 264 |
)
|
| 265 |
math_question_list.change(
|
| 266 |
math_display_question_answer,
|
| 267 |
[math_question_list, math_cot],
|
| 268 |
+
[math_model1_output1, math_model2_output1, math_model3_output1, math_summarization_text1, math_model1_output2, math_model2_output2, math_model3_output2, math_summarization_text2, math_model1_output3, math_model2_output3, math_model3_output3]
|
| 269 |
)
|
| 270 |
|
| 271 |
|