Spaces:
Sleeping
Sleeping
Peter
commited on
Commit
•
8281a66
1
Parent(s):
5bb09f1
:art: improve format for scores
Browse files
app.py
CHANGED
@@ -92,12 +92,13 @@ def proc_submission(
|
|
92 |
**settings,
|
93 |
)
|
94 |
sum_text = [s["summary"][0] for s in _summaries]
|
95 |
-
sum_scores = [f"\n - {round(s['summary_score'],4)}" for s in _summaries]
|
96 |
|
97 |
history["Summary Text"] = "\n\t".join(sum_text)
|
98 |
history["Summary Scores"] = "\n".join(sum_scores)
|
99 |
history["Input"] = tr_in
|
100 |
html = ""
|
|
|
101 |
for name, item in history.items():
|
102 |
html += (
|
103 |
f"<h2>{name}:</h2><hr><b>{item}</b><br><br>"
|
|
|
92 |
**settings,
|
93 |
)
|
94 |
sum_text = [s["summary"][0] for s in _summaries]
|
95 |
+
sum_scores = [f"\n - Section {i}: {round(s['summary_score'],4)}" for i, s in enumerate(_summaries)]
|
96 |
|
97 |
history["Summary Text"] = "\n\t".join(sum_text)
|
98 |
history["Summary Scores"] = "\n".join(sum_scores)
|
99 |
history["Input"] = tr_in
|
100 |
html = ""
|
101 |
+
|
102 |
for name, item in history.items():
|
103 |
html += (
|
104 |
f"<h2>{name}:</h2><hr><b>{item}</b><br><br>"
|