Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -439,6 +439,14 @@ with gr.Blocks(title="Sahara Benchmark Leaderboards", css=google_style_css) as d
|
|
439 |
model_1_dd = gr.Dropdown(MODEL_NAME_LIST, label="Select Model 1", interactive=True)
|
440 |
model_2_dd = gr.Dropdown(MODEL_NAME_LIST, label="Select Model 2", interactive=True)
|
441 |
compare_btn = gr.Button("Compare")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
442 |
comparison_output = gr.HTML("<p style='text-align:center;'>Select two models and click Compare to see the results.</p>")
|
443 |
|
444 |
def update_comparison_table(m1, m2):
|
|
|
439 |
model_1_dd = gr.Dropdown(MODEL_NAME_LIST, label="Select Model 1", interactive=True)
|
440 |
model_2_dd = gr.Dropdown(MODEL_NAME_LIST, label="Select Model 2", interactive=True)
|
441 |
compare_btn = gr.Button("Compare")
|
442 |
+
# --- NEW: Add explanatory note for the 'Difference' column ---
|
443 |
+
explanation_note = """
|
444 |
+
**Note on the 'Difference' Column:**
|
445 |
+
* This value is calculated as: `(Score of Model 1) - (Score of Model 2)`.
|
446 |
+
* A positive value in <span style='color:green; font-weight:bold;'>green</span> indicates that **Model 1** performed better on that task.
|
447 |
+
* A negative value in <span style='color:red; font-weight:bold;'>red</span> indicates that **Model 2** performed better on that task.
|
448 |
+
"""
|
449 |
+
gr.Markdown(explanation_note)
|
450 |
comparison_output = gr.HTML("<p style='text-align:center;'>Select two models and click Compare to see the results.</p>")
|
451 |
|
452 |
def update_comparison_table(m1, m2):
|