TheXeos commited on
Commit
4d948da
โ€ข
1 Parent(s): 452ab22

Typo maybe

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -30,9 +30,8 @@ def update_elos():
30
  matchmaking.save_elo_data()
31
 
32
 
33
- def get_env_data() -> pd.DataFrame:
34
  data = pd.read_csv(f"env_elos/elo.csv")
35
- # data = pd.DataFrame(columns=["user", "model", "elo", "games_played"])
36
  return data
37
 
38
 
@@ -53,9 +52,9 @@ with block:
53
 
54
  ๐Ÿ”ง There is an **environment missing?** Please open an issue.
55
  """)
56
-
57
- gr.components.DataFrame(
58
- value=get_env_data(),
59
  headers=["Ranking ๐Ÿ†", "User ๐Ÿค—", "Model id ๐Ÿค–", "ELO ๐Ÿš€", "Games played ๐ŸŽฎ"],
60
  datatype=["number", "markdown", "markdown", "number", "number"]
61
  )
 
30
  matchmaking.save_elo_data()
31
 
32
 
33
+ def get_elo_data() -> pd.DataFrame:
34
  data = pd.read_csv(f"env_elos/elo.csv")
 
35
  return data
36
 
37
 
 
52
 
53
  ๐Ÿ”ง There is an **environment missing?** Please open an issue.
54
  """)
55
+ with gr.Blocks() as block:
56
+ gr.components.Dataframe(
57
+ value=get_elo_data(),
58
  headers=["Ranking ๐Ÿ†", "User ๐Ÿค—", "Model id ๐Ÿค–", "ELO ๐Ÿš€", "Games played ๐ŸŽฎ"],
59
  datatype=["number", "markdown", "markdown", "number", "number"]
60
  )