Spaces:
Sleeping
Sleeping
final touches
Browse files
app.py
CHANGED
@@ -39,11 +39,6 @@ projects = {
|
|
39 |
"project": "melanoma-testnet",
|
40 |
"description": "This is a testnet competition for melanoma detection."
|
41 |
},
|
42 |
-
"Simple-cnn": {
|
43 |
-
"entity": "urbaniak-bruno-safescanai",
|
44 |
-
"project": "simple-cnn",
|
45 |
-
"description": "This is a testnen."
|
46 |
-
},
|
47 |
|
48 |
# Add more projects as needed
|
49 |
}
|
@@ -141,9 +136,7 @@ def main():
|
|
141 |
st.session_state.leader_info[competition] = update_leader_info(st.session_state.leader_info, competition, best_model)
|
142 |
else:
|
143 |
st.warning(f"No model found for the best hotkey: {best_hotkey} in competition {competition}.")
|
144 |
-
|
145 |
-
# best_model = model_evaluations[competition][model_evaluations[competition]["Hotkey"] == best_hotkey].iloc[0]
|
146 |
-
# st.session_state.leader_info[competition] = update_leader_info(st.session_state.leader_info, competition, best_model)
|
147 |
else:
|
148 |
st.session_state.leader_info[competition] = {
|
149 |
"Username": "N/A", "Hotkey": "N/A",
|
@@ -226,7 +219,6 @@ def main():
|
|
226 |
competition_summary_df = competition_summaries.get(competition_name, pd.DataFrame())
|
227 |
|
228 |
if not competition_summary_df.empty:
|
229 |
-
# st.markdown('<div class="table-container">' + competition_summary_df.to_html(classes='dataframe', escape=False) + '</div>', unsafe_allow_html=True)
|
230 |
st.dataframe(competition_summary_df)
|
231 |
else:
|
232 |
st.warning("No competition summary data available.")
|
@@ -236,7 +228,6 @@ def main():
|
|
236 |
st.subheader("Models Evaluation")
|
237 |
models_evaluation_df = model_evaluations.get(competition_name, pd.DataFrame())
|
238 |
if not models_evaluation_df.empty:
|
239 |
-
# st.markdown('<div class="table-container">' + models_evaluation_df.to_html(classes='dataframe', escape=False) + '</div>', unsafe_allow_html=True)
|
240 |
st.dataframe(models_evaluation_df.style.apply(highlight_score_column, axis=0))
|
241 |
else:
|
242 |
st.warning("No models evaluation data available.")
|
|
|
39 |
"project": "melanoma-testnet",
|
40 |
"description": "This is a testnet competition for melanoma detection."
|
41 |
},
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
# Add more projects as needed
|
44 |
}
|
|
|
136 |
st.session_state.leader_info[competition] = update_leader_info(st.session_state.leader_info, competition, best_model)
|
137 |
else:
|
138 |
st.warning(f"No model found for the best hotkey: {best_hotkey} in competition {competition}.")
|
139 |
+
|
|
|
|
|
140 |
else:
|
141 |
st.session_state.leader_info[competition] = {
|
142 |
"Username": "N/A", "Hotkey": "N/A",
|
|
|
219 |
competition_summary_df = competition_summaries.get(competition_name, pd.DataFrame())
|
220 |
|
221 |
if not competition_summary_df.empty:
|
|
|
222 |
st.dataframe(competition_summary_df)
|
223 |
else:
|
224 |
st.warning("No competition summary data available.")
|
|
|
228 |
st.subheader("Models Evaluation")
|
229 |
models_evaluation_df = model_evaluations.get(competition_name, pd.DataFrame())
|
230 |
if not models_evaluation_df.empty:
|
|
|
231 |
st.dataframe(models_evaluation_df.style.apply(highlight_score_column, axis=0))
|
232 |
else:
|
233 |
st.warning("No models evaluation data available.")
|
utils.py
CHANGED
@@ -71,7 +71,6 @@ def fetch_models_evaluation(api, projects, selected_project):
|
|
71 |
"Precision": summary.get("precision"),
|
72 |
|
73 |
"Tested entries": summary.get("tested_entries"),
|
74 |
-
# "Run Time (s)": summary.get("run_time_s"),
|
75 |
|
76 |
"ROC AUC": summary.get("roc_auc"),
|
77 |
"Confusion Matrix": summary.get("confusion_matrix"),
|
|
|
71 |
"Precision": summary.get("precision"),
|
72 |
|
73 |
"Tested entries": summary.get("tested_entries"),
|
|
|
74 |
|
75 |
"ROC AUC": summary.get("roc_auc"),
|
76 |
"Confusion Matrix": summary.get("confusion_matrix"),
|