Fix download link
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def get_model_info_blocks(chosen_model_name):
|
|
218 |
answers_html = gr.Markdown("")
|
219 |
else:
|
220 |
with gr.Row():
|
221 |
-
gr.Markdown(f"""
|
222 |
<a href='{download_file_path}' target='_blank'>Download model answers here</a>
|
223 |
""")
|
224 |
with gr.Row():
|
@@ -232,7 +232,7 @@ def get_model_info_blocks(chosen_model_name):
|
|
232 |
label="Model Responses", container=True, elem_classes="model_responses_container")
|
233 |
|
234 |
|
235 |
-
return model_name,benchmark_score,rank,speed,contamination,size,skills_bar,answers_html
|
236 |
|
237 |
|
238 |
|
@@ -320,9 +320,9 @@ with demo:
|
|
320 |
models_dropdown = gr.Dropdown(choices=model_names_clean, label="Select Model", value=model_names_clean[0])
|
321 |
|
322 |
|
323 |
-
model_name,benchmark_score,rank,speed,contamination,size,skills_bar,answers_html = get_model_info_blocks(models_dropdown.value)
|
324 |
|
325 |
-
models_dropdown.change(get_model_info_blocks, inputs=models_dropdown, outputs=[model_name,benchmark_score,rank,speed,contamination,size,skills_bar,answers_html])
|
326 |
|
327 |
with gr.TabItem("🚀 Submit here", elem_id="llm-benchmark-tab-submit", id=5):
|
328 |
|
|
|
218 |
answers_html = gr.Markdown("")
|
219 |
else:
|
220 |
with gr.Row():
|
221 |
+
download_link = gr.Markdown(f"""
|
222 |
<a href='{download_file_path}' target='_blank'>Download model answers here</a>
|
223 |
""")
|
224 |
with gr.Row():
|
|
|
232 |
label="Model Responses", container=True, elem_classes="model_responses_container")
|
233 |
|
234 |
|
235 |
+
return model_name,benchmark_score,rank,speed,contamination,size,skills_bar,answers_html,download_link
|
236 |
|
237 |
|
238 |
|
|
|
320 |
models_dropdown = gr.Dropdown(choices=model_names_clean, label="Select Model", value=model_names_clean[0])
|
321 |
|
322 |
|
323 |
+
model_name,benchmark_score,rank,speed,contamination,size,skills_bar,answers_html,download_link = get_model_info_blocks(models_dropdown.value)
|
324 |
|
325 |
+
models_dropdown.change(get_model_info_blocks, inputs=models_dropdown, outputs=[model_name,benchmark_score,rank,speed,contamination,size,skills_bar,answers_html,download_link])
|
326 |
|
327 |
with gr.TabItem("🚀 Submit here", elem_id="llm-benchmark-tab-submit", id=5):
|
328 |
|