Noha90 commited on
Commit
a10895b
·
1 Parent(s): 0aafe28

fix: predict

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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())