Commit
·
6836e69
1
Parent(s):
4808b6b
Round to 3 digits
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def format_leaderboard_table(df_results: pd.DataFrame, assay: str | None = None)
|
|
| 38 |
# After sorting, just add the reason for excluding heldout test set
|
| 39 |
# Note: We can also just say the following as a text box at the bottom of the leaderboard: "Note: Results for the Heldout Test Set are only evaluated at competition close"
|
| 40 |
# Convert spearman column to string to avoid dtype incompatibility when assigning text
|
| 41 |
-
df["spearman"] = df["spearman"].
|
| 42 |
# Cast submission_time to datetime
|
| 43 |
df["submission_time"] = pd.to_datetime(df["submission_time"], errors="coerce")
|
| 44 |
# Before the first deadline: Say we're busy evaluating
|
|
@@ -264,4 +264,6 @@ with gr.Blocks(theme=gr.themes.Default(text_size=sizes.text_lg)) as demo:
|
|
| 264 |
)
|
| 265 |
|
| 266 |
if __name__ == "__main__":
|
| 267 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
| 38 |
# After sorting, just add the reason for excluding heldout test set
|
| 39 |
# Note: We can also just say the following as a text box at the bottom of the leaderboard: "Note: Results for the Heldout Test Set are only evaluated at competition close"
|
| 40 |
# Convert spearman column to string to avoid dtype incompatibility when assigning text
|
| 41 |
+
df["spearman"] = df["spearman"].apply(lambda x: f"{x:.3f}")
|
| 42 |
# Cast submission_time to datetime
|
| 43 |
df["submission_time"] = pd.to_datetime(df["submission_time"], errors="coerce")
|
| 44 |
# Before the first deadline: Say we're busy evaluating
|
|
|
|
| 264 |
)
|
| 265 |
|
| 266 |
if __name__ == "__main__":
|
| 267 |
+
demo.launch(
|
| 268 |
+
ssr_mode=False, app_kwargs={"lifespan": periodic_data_fetch}, share=True
|
| 269 |
+
)
|