Skip to content

Commit

Permalink
checking for JSON serialization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Sep 15, 2023
1 parent 65eddd9 commit 041ff06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/nomic_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def log_convo_to_nomic(course_name: str, conversation) -> str:
embeddings = map_embeddings_df[prev_index-1].reshape(1, 1536)
prev_convo = prev_data['conversation'].values[0]
prev_id = prev_data['id'].values[0]
print("prev_id print: ", prev_data['id'])
print("prev_id print: ", [prev_id])
print("prev_id: ", prev_id)
created_at = pd.to_datetime(prev_data['created_at'].values[0]).strftime('%Y-%m-%d %H:%M:%S')
print("prev_created_at: ", created_at)
Expand Down

0 comments on commit 041ff06

Please sign in to comment.