philippds commited on
Commit
401b6e4
Β·
verified Β·
1 Parent(s): 103916a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -205,14 +205,17 @@ with block:
205
 
206
  path_ = download_leaderboard_dataset()
207
  # gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
 
208
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
209
  for i in range(0, len(hivex_envs)):
210
  hivex_env = hivex_envs[i]
211
- with gr.Tab(hivex_env["hivex_env"]) as tab:
 
212
  for j in range(0, hivex_env["task_count"]):
213
  task = "Task " + str(j + 1)
214
- with gr.Row():
215
- gr_dataframe = gr.components.Dataframe(value=get_data(hivex_env["hivex_env"], path_), headers=["User", "Model", "Cumulative Reward"], datatype=["markdown", "markdown", "number"], row_count=(100, 'fixed'))
 
216
 
217
  # with gr.Tab("πŸ’Ž Hard Set") as hard_tabs:
218
  # with gr.TabItem(
 
205
 
206
  path_ = download_leaderboard_dataset()
207
  # gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
208
+ # ENVIRONMENT TABS
209
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
210
  for i in range(0, len(hivex_envs)):
211
  hivex_env = hivex_envs[i]
212
+ with gr.Tab(hivex_env["hivex_env"]) as env_tabs:
213
+ # TASK TABS
214
  for j in range(0, hivex_env["task_count"]):
215
  task = "Task " + str(j + 1)
216
+ with gr.TabItem(f"Task {j}"):
217
+ with gr.Row():
218
+ gr_dataframe = gr.components.Dataframe(value=get_data(hivex_env["hivex_env"], path_), headers=["User", "Model", "Cumulative Reward"], datatype=["markdown", "markdown", "number"], row_count=(100, 'fixed'))
219
 
220
  # with gr.Tab("πŸ’Ž Hard Set") as hard_tabs:
221
  # with gr.TabItem(