Spaces:
Runtime error
Runtime error
Typo maybe
Browse files
app.py
CHANGED
@@ -30,9 +30,8 @@ def update_elos():
|
|
30 |
matchmaking.save_elo_data()
|
31 |
|
32 |
|
33 |
-
def
|
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.
|
58 |
-
value=
|
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 |
)
|