Lisa Dunlap
commited on
Commit
β’
853a7bf
1
Parent(s):
8eda66c
changed arrow order for readability
Browse files
app.py
CHANGED
@@ -211,7 +211,7 @@ def create_ranking_str(ranking, ranking_difference):
|
|
211 |
if ranking_difference > 0:
|
212 |
return f"{int(ranking)} (\u2191{int(ranking_difference)})"
|
213 |
elif ranking_difference < 0:
|
214 |
-
return f"{int(ranking)} (
|
215 |
else:
|
216 |
return f"{int(ranking)}"
|
217 |
|
@@ -408,7 +408,7 @@ See Figure 3 below for visualization of the confidence intervals. Code to recrea
|
|
408 |
with gr.Row():
|
409 |
with gr.Column():
|
410 |
gr.Markdown(
|
411 |
-
"#### Figure 1: Fraction of Model A Wins for All Non-tied A vs. B Battles", elem_id="plot-title"
|
412 |
)
|
413 |
plot_1 = gr.Plot(p1, show_label=False, elem_id="plot-container")
|
414 |
with gr.Column():
|
@@ -472,12 +472,10 @@ block_css = """
|
|
472 |
display: inline-block;
|
473 |
padding: 10px 10px;
|
474 |
background-color: #f7f7f7; /* Super light grey background */
|
475 |
-
color: #000000; /* Black text */
|
476 |
text-align: center;
|
477 |
font-size: 26px; /* Larger text */
|
478 |
border-radius: 0; /* Straight edges, no border radius */
|
479 |
border: 0px solid #dcdcdc; /* A light grey border to match the background */
|
480 |
-
font-weight: bold;
|
481 |
user-select: none; /* The text inside the button is not selectable */
|
482 |
pointer-events: none; /* The button is non-interactive */
|
483 |
}
|
|
|
211 |
if ranking_difference > 0:
|
212 |
return f"{int(ranking)} (\u2191{int(ranking_difference)})"
|
213 |
elif ranking_difference < 0:
|
214 |
+
return f"{int(ranking)} ({int(-ranking_difference)}\u2193)"
|
215 |
else:
|
216 |
return f"{int(ranking)}"
|
217 |
|
|
|
408 |
with gr.Row():
|
409 |
with gr.Column():
|
410 |
gr.Markdown(
|
411 |
+
"#### Figure 1: Fraction of Model A Wins for All Non-tied A vs. B Battles", elem_id="plot-title"
|
412 |
)
|
413 |
plot_1 = gr.Plot(p1, show_label=False, elem_id="plot-container")
|
414 |
with gr.Column():
|
|
|
472 |
display: inline-block;
|
473 |
padding: 10px 10px;
|
474 |
background-color: #f7f7f7; /* Super light grey background */
|
|
|
475 |
text-align: center;
|
476 |
font-size: 26px; /* Larger text */
|
477 |
border-radius: 0; /* Straight edges, no border radius */
|
478 |
border: 0px solid #dcdcdc; /* A light grey border to match the background */
|
|
|
479 |
user-select: none; /* The text inside the button is not selectable */
|
480 |
pointer-events: none; /* The button is non-interactive */
|
481 |
}
|