Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Quentin GallouΓ©dec
commited on
Commit
β’
8071283
1
Parent(s):
08990fb
style
Browse files
app.py
CHANGED
@@ -165,11 +165,9 @@ def format_df(df: pd.DataFrame):
|
|
165 |
return df.values.tolist()
|
166 |
|
167 |
|
168 |
-
|
169 |
-
|
170 |
-
"""
|
171 |
|
172 |
-
INTRODUCTION_TEXT = """
|
173 |
Welcome to the Open RL Leaderboard! This is a community-driven benchmark for reinforcement learning models.
|
174 |
"""
|
175 |
|
@@ -247,8 +245,7 @@ If you encounter any issue, please open an issue on the [Open RL Leaderboard rep
|
|
247 |
|
248 |
|
249 |
with gr.Blocks() as demo:
|
250 |
-
gr.
|
251 |
-
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
252 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
253 |
with gr.TabItem("π
Leaderboard"):
|
254 |
df = get_leaderboard_df()
|
@@ -262,7 +259,7 @@ with gr.Blocks() as demo:
|
|
262 |
env_df = select_env(df, env_id)
|
263 |
gr.components.Dataframe(
|
264 |
value=format_df(env_df),
|
265 |
-
headers=["π
|
266 |
datatype=["number", "markdown", "markdown", "number"],
|
267 |
row_count=(10, "fixed"),
|
268 |
scale=3,
|
@@ -287,7 +284,7 @@ with gr.Blocks() as demo:
|
|
287 |
)
|
288 |
# Doesn't loop for the moment, see https://github.com/gradio-app/gradio/issues/7689
|
289 |
|
290 |
-
with gr.TabItem("π About"
|
291 |
gr.Markdown(ABOUT_TEXT)
|
292 |
|
293 |
|
|
|
165 |
return df.values.tolist()
|
166 |
|
167 |
|
168 |
+
HEADING = """
|
169 |
+
# π₯ Open RL Leaderboard π₯
|
|
|
170 |
|
|
|
171 |
Welcome to the Open RL Leaderboard! This is a community-driven benchmark for reinforcement learning models.
|
172 |
"""
|
173 |
|
|
|
245 |
|
246 |
|
247 |
with gr.Blocks() as demo:
|
248 |
+
gr.Markdown(HEADING)
|
|
|
249 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
250 |
with gr.TabItem("π
Leaderboard"):
|
251 |
df = get_leaderboard_df()
|
|
|
259 |
env_df = select_env(df, env_id)
|
260 |
gr.components.Dataframe(
|
261 |
value=format_df(env_df),
|
262 |
+
headers=["π", "π§ User", "π€ Model id", "π Mean episodic return"],
|
263 |
datatype=["number", "markdown", "markdown", "number"],
|
264 |
row_count=(10, "fixed"),
|
265 |
scale=3,
|
|
|
284 |
)
|
285 |
# Doesn't loop for the moment, see https://github.com/gradio-app/gradio/issues/7689
|
286 |
|
287 |
+
with gr.TabItem("π About"):
|
288 |
gr.Markdown(ABOUT_TEXT)
|
289 |
|
290 |
|