Toya0421 commited on
Commit
8f72d36
·
verified ·
1 Parent(s): 7ad1f4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -94,6 +94,9 @@ def log_event(state: dict, **kwargs):
94
  if "actions" in kwargs and isinstance(kwargs["actions"], str):
95
  kwargs["actions"] = normalize_text_for_csv(kwargs["actions"])
96
 
 
 
 
97
  entry = {"time": now, "user_id": state.get("user_id"), **kwargs}
98
  log_to_csv(entry)
99
 
 
94
  if "actions" in kwargs and isinstance(kwargs["actions"], str):
95
  kwargs["actions"] = normalize_text_for_csv(kwargs["actions"])
96
 
97
+ if "choice" in kwargs and isinstance(kwargs["choice"], str):
98
+ kwargs["choice"] = normalize_text_for_csv(kwargs["choice"])
99
+
100
  entry = {"time": now, "user_id": state.get("user_id"), **kwargs}
101
  log_to_csv(entry)
102