fix: predict
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def index():
|
|
| 36 |
"predictions": predictions
|
| 37 |
}
|
| 38 |
with open("log.jsonl", "a") as f:
|
| 39 |
-
f.write(json.dumps(log_entry) + "\n")
|
| 40 |
|
| 41 |
label_counter = Counter([item["entity_group"] for item in predictions])
|
| 42 |
tag_labels = list(label_counter.keys())
|
|
|
|
| 36 |
"predictions": predictions
|
| 37 |
}
|
| 38 |
with open("log.jsonl", "a") as f:
|
| 39 |
+
f.write(json.dumps(log_entry, default=str) + "\n")
|
| 40 |
|
| 41 |
label_counter = Counter([item["entity_group"] for item in predictions])
|
| 42 |
tag_labels = list(label_counter.keys())
|