Spaces:
Runtime error
Runtime error
root commited on
Commit ยท
b849d08
1
Parent(s): ff973f9
fix ordering2
Browse files
app.py
CHANGED
|
@@ -459,8 +459,9 @@ def main():
|
|
| 459 |
def get_miner_stats(uid):
|
| 460 |
local_stats = miners_stats[miners_stats['uid'] == int(uid)]
|
| 461 |
local_stats.drop('penalty', axis=1, inplace=True)
|
|
|
|
| 462 |
local_stats.columns = ["Validator UID", "UID", "Weight", "Reward", "FP Score", "F1 Score", "AP Score"]
|
| 463 |
-
local_stats = local_stats[["Validator UID", "UID", "Weight", "Reward", "FP Score", "F1 Score", "AP Score"]]
|
| 464 |
return local_stats
|
| 465 |
|
| 466 |
with gr.Accordion("Get your miner stats"):
|
|
|
|
| 459 |
def get_miner_stats(uid):
|
| 460 |
local_stats = miners_stats[miners_stats['uid'] == int(uid)]
|
| 461 |
local_stats.drop('penalty', axis=1, inplace=True)
|
| 462 |
+
local_stats = local_stats[["validator_uid","uid","weight", "reward","fp_score","f1_score","ap_score"]]
|
| 463 |
local_stats.columns = ["Validator UID", "UID", "Weight", "Reward", "FP Score", "F1 Score", "AP Score"]
|
| 464 |
+
# local_stats = local_stats[["Validator UID", "UID", "Weight", "Reward", "FP Score", "F1 Score", "AP Score"]]
|
| 465 |
return local_stats
|
| 466 |
|
| 467 |
with gr.Accordion("Get your miner stats"):
|