From f60e8764f8e0298bdc4dd4c2a35aa25e7263660b Mon Sep 17 00:00:00 2001 From: star-nox Date: Mon, 11 Sep 2023 15:08:41 -0500 Subject: [PATCH] investigate data --- ai_ta_backend/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai_ta_backend/main.py b/ai_ta_backend/main.py index 6f60d388..081d5e4c 100644 --- a/ai_ta_backend/main.py +++ b/ai_ta_backend/main.py @@ -423,10 +423,10 @@ def logToNomic(): f"Missing one or more required parameters: 'course_name' and 'conversation' must be provided. Course name: `{course_name}`, Conversation: `{conversation}`" ) - conversation_json = json.loads(conversation) + #conversation_json = json.loads(conversation) # background execution of tasks!! - response = executor.submit(log_convo_to_nomic, course_name, conversation_json) + response = executor.submit(log_convo_to_nomic, course_name, data) response = jsonify(response) response.headers.add('Access-Control-Allow-Origin', '*') return response