Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
switch tabs to make verification one take priority
Browse files
app.py
CHANGED
@@ -913,26 +913,6 @@ with demo:
|
|
913 |
TITLE = """<h1 align="center" id="space-title">π€ Hugging Face Level Leaderboard</h1>"""
|
914 |
gr.HTML(TITLE)
|
915 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
916 |
-
with gr.TabItem("π
Level leaderboard", elem_id="level-table", id=0):
|
917 |
-
#gr.Markdown("# π Experience Leaderboard")
|
918 |
-
with gr.Row():
|
919 |
-
with gr.Column():
|
920 |
-
gr.DataFrame(get_data, every=5, height=500, datatype=["markdown"], interactive=False, col_count=(3, "fixed"), column_widths=["100px","100px","100px"])
|
921 |
-
|
922 |
-
with gr.Column():
|
923 |
-
gr.BarPlot(
|
924 |
-
value=dataframe2,
|
925 |
-
x="Levels",
|
926 |
-
y="Members",
|
927 |
-
title="Level Distribution",
|
928 |
-
height=450,
|
929 |
-
width=450,
|
930 |
-
interactive=False
|
931 |
-
)
|
932 |
-
with gr.Row():
|
933 |
-
gr.Markdown("# π How to earn Experience!")
|
934 |
-
with gr.Row():
|
935 |
-
gr.DataFrame(get_data2, every=5, interactive=False)
|
936 |
#------------------------------------------------------------------------------
|
937 |
with gr.TabItem("β
Discord Verification", elem_id="verify-tab", id=2):
|
938 |
login_button = gr.LoginButton()
|
@@ -952,7 +932,28 @@ with demo:
|
|
952 |
else:
|
953 |
return f"Logged in as {session.get('username', 'Unknown')}"
|
954 |
|
955 |
-
login_button.click(check_login_wrapper, inputs=None, outputs=m1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
956 |
#------------------------------------------------------------------------------
|
957 |
with gr.TabItem("π Activity Heatmap", elem_id="activity-heatmap", id=1):
|
958 |
with gr.Row():
|
|
|
913 |
TITLE = """<h1 align="center" id="space-title">π€ Hugging Face Level Leaderboard</h1>"""
|
914 |
gr.HTML(TITLE)
|
915 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
916 |
#------------------------------------------------------------------------------
|
917 |
with gr.TabItem("β
Discord Verification", elem_id="verify-tab", id=2):
|
918 |
login_button = gr.LoginButton()
|
|
|
932 |
else:
|
933 |
return f"Logged in as {session.get('username', 'Unknown')}"
|
934 |
|
935 |
+
login_button.click(check_login_wrapper, inputs=None, outputs=m1)
|
936 |
+
#------------------------------------------------------------------------------
|
937 |
+
with gr.TabItem("π
Level leaderboard", elem_id="level-table", id=0):
|
938 |
+
#gr.Markdown("# π Experience Leaderboard")
|
939 |
+
with gr.Row():
|
940 |
+
with gr.Column():
|
941 |
+
gr.DataFrame(get_data, every=5, height=500, datatype=["markdown"], interactive=False, col_count=(3, "fixed"), column_widths=["100px","100px","100px"])
|
942 |
+
|
943 |
+
with gr.Column():
|
944 |
+
gr.BarPlot(
|
945 |
+
value=dataframe2,
|
946 |
+
x="Levels",
|
947 |
+
y="Members",
|
948 |
+
title="Level Distribution",
|
949 |
+
height=450,
|
950 |
+
width=450,
|
951 |
+
interactive=False
|
952 |
+
)
|
953 |
+
with gr.Row():
|
954 |
+
gr.Markdown("# π How to earn Experience!")
|
955 |
+
with gr.Row():
|
956 |
+
gr.DataFrame(get_data2, every=5, interactive=False)
|
957 |
#------------------------------------------------------------------------------
|
958 |
with gr.TabItem("π Activity Heatmap", elem_id="activity-heatmap", id=1):
|
959 |
with gr.Row():
|