TheXeos commited on
Commit
452ab22
โ€ข
1 Parent(s): 69c939a

Simplify UI

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -54,15 +54,10 @@ with block:
54
  ๐Ÿ”ง There is an **environment missing?** Please open an issue.
55
  """)
56
 
57
- with gr.Row():
58
- refresh_data = gr.Button("Refresh")
59
- val = gr.Variable(value=[env["name"]])
60
- refresh_data.click(get_env_data, inputs=[val], outputs=env["global"])
61
- with gr.Row():
62
- env["global"] = gr.components.DataFrame(
63
- get_env_data(),
64
- headers=["Ranking ๐Ÿ†", "User ๐Ÿค—", "Model id ๐Ÿค–", "ELO ๐Ÿš€", "Games played ๐ŸŽฎ"],
65
- datatype=["number", "markdown", "markdown", "number", "number"]
66
- )
67
 
68
  block.launch()
 
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
+ )
 
 
 
 
 
62
 
63
  block.launch()