Spaces:
Sleeping
Sleeping
Update ui.py
Browse files
ui.py
CHANGED
|
@@ -146,7 +146,8 @@ def save_row(idx: int, ratings: List[str], comments: List[str]):
|
|
| 146 |
df.at[idx, f"rating_{m}__prompt2"] = ratings[p]; p += 1
|
| 147 |
# comments
|
| 148 |
for m, c in zip(order, comments):
|
| 149 |
-
|
|
|
|
| 150 |
|
| 151 |
df.at[idx, "annotator"] = annotator
|
| 152 |
df.at[idx, "annotation_time"] = float(elapsed)
|
|
|
|
| 146 |
df.at[idx, f"rating_{m}__prompt2"] = ratings[p]; p += 1
|
| 147 |
# comments
|
| 148 |
for m, c in zip(order, comments):
|
| 149 |
+
clean = (c or "").strip()
|
| 150 |
+
df.at[idx, f"{COMMENT_PREFIX}{m}"] = clean or "no comment"
|
| 151 |
|
| 152 |
df.at[idx, "annotator"] = annotator
|
| 153 |
df.at[idx, "annotation_time"] = float(elapsed)
|