bulubula commited on
Commit
bca906c
1 Parent(s): f282dc5

dataframe display fix

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. utils.py +2 -1
app.py CHANGED
@@ -152,14 +152,14 @@ def main():
152
  st.subheader("Competition Summary")
153
  competition_summary_df = competition_summaries.get(competition_name, pd.DataFrame())
154
  if not competition_summary_df.empty:
155
- st.dataframe(competition_summary_df, height=500)
156
  else:
157
  st.warning("No competition summary data available.")
158
 
159
  st.subheader("Models Evaluation")
160
  models_evaluation_df = model_evaluations.get(competition_name, pd.DataFrame())
161
  if not models_evaluation_df.empty:
162
- st.dataframe(models_evaluation_df.style.apply(highlight_score_column, axis=0))
163
  else:
164
  st.warning("No models evaluation data available.")
165
  else:
 
152
  st.subheader("Competition Summary")
153
  competition_summary_df = competition_summaries.get(competition_name, pd.DataFrame())
154
  if not competition_summary_df.empty:
155
+ st.dataframe(competition_summary_df, height=500, hide_index=True)
156
  else:
157
  st.warning("No competition summary data available.")
158
 
159
  st.subheader("Models Evaluation")
160
  models_evaluation_df = model_evaluations.get(competition_name, pd.DataFrame())
161
  if not models_evaluation_df.empty:
162
+ st.dataframe(models_evaluation_df.style.apply(highlight_score_column, axis=0), height=500, hide_index=True)
163
  else:
164
  st.warning("No models evaluation data available.")
165
  else:
utils.py CHANGED
@@ -66,7 +66,6 @@ def fetch_models_evaluation(api, projects, selected_project):
66
  "Created At": run.created_at,
67
 
68
  "Miner hotkey": summary.get("miner_hotkey", "N/A"),
69
- "Score": summary.get("score"),
70
 
71
  "F1-beta": summary.get("fbeta"),
72
  "Accuracy": summary.get("accuracy"),
@@ -77,6 +76,8 @@ def fetch_models_evaluation(api, projects, selected_project):
77
 
78
  "ROC AUC": summary.get("roc_auc"),
79
  "Confusion Matrix": summary.get("confusion_matrix"),
 
 
80
  #TODO link to huggingface model
81
  })
82
  except Exception as e:
 
66
  "Created At": run.created_at,
67
 
68
  "Miner hotkey": summary.get("miner_hotkey", "N/A"),
 
69
 
70
  "F1-beta": summary.get("fbeta"),
71
  "Accuracy": summary.get("accuracy"),
 
76
 
77
  "ROC AUC": summary.get("roc_auc"),
78
  "Confusion Matrix": summary.get("confusion_matrix"),
79
+
80
+ "Score": summary.get("score"),
81
  #TODO link to huggingface model
82
  })
83
  except Exception as e: