Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -576,6 +576,18 @@ def get_data():
|
|
| 576 |
print(f"on_message Error: {e}")
|
| 577 |
|
| 578 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 579 |
demo = gr.Blocks()
|
| 580 |
with demo:
|
| 581 |
try:
|
|
@@ -608,7 +620,10 @@ with demo:
|
|
| 608 |
height=450,
|
| 609 |
width=450,
|
| 610 |
interactive=False
|
| 611 |
-
)
|
|
|
|
|
|
|
|
|
|
| 612 |
#with gr.TabItem("π Members of the Week", elem_id="week-table", id=1):
|
| 613 |
|
| 614 |
#with gr.TabItem("π Hub-only leaderboard", elem_id="hub-table", id=2):
|
|
|
|
| 576 |
print(f"on_message Error: {e}")
|
| 577 |
|
| 578 |
|
| 579 |
+
def get_data2():
|
| 580 |
+
try:
|
| 581 |
+
display_data = {
|
| 582 |
+
'π€ Hub (+30 exp)': ['Creating Repos', 'Papers', 'Likes/Upvotes', 'Discussions'],
|
| 583 |
+
'Discord (+10 exp)': ['Posting messages', 'Reacting']
|
| 584 |
+
}
|
| 585 |
+
display_df = pd.DataFrame(display_data)
|
| 586 |
+
return display_df
|
| 587 |
+
except Exception as e:
|
| 588 |
+
print(f"on_message Error: {e}")
|
| 589 |
+
|
| 590 |
+
|
| 591 |
demo = gr.Blocks()
|
| 592 |
with demo:
|
| 593 |
try:
|
|
|
|
| 620 |
height=450,
|
| 621 |
width=450,
|
| 622 |
interactive=False
|
| 623 |
+
)
|
| 624 |
+
with gr.Row():
|
| 625 |
+
gr.Markdown("# π How to earn Experience!")
|
| 626 |
+
gr.DataFrame(get_data2, every=5, height=500, interactive=False, column_widths=["100px","100px","100px"])
|
| 627 |
#with gr.TabItem("π Members of the Week", elem_id="week-table", id=1):
|
| 628 |
|
| 629 |
#with gr.TabItem("π Hub-only leaderboard", elem_id="hub-table", id=2):
|