Skip to content

Commit 1a54f5b

Browse files
authored
fix: trace summary df showing in dsapp (microsoft#551)
* fix trace summary df show * fix ci
1 parent 35e0b8e commit 1a54f5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rdagent/log/ui/dsapp.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ def summarize_data():
243243
except Exception as e:
244244
state.data[loop]["mle_score"] = str(e)
245245
df.loc[loop, "Running Score"] = "❌"
246+
else:
247+
if isinstance(state.data[loop]["mle_score"], dict):
248+
df.loc[loop, "Running Score"] = str(state.data[loop]["mle_score"]["score"])
249+
else:
250+
df.loc[loop, "Running Score"] = "❌"
251+
246252
else:
247253
df.loc[loop, "Running Score"] = "N/A"
248254

0 commit comments

Comments
 (0)