From b8cc4710cbf001f59076d7228e486cd30ca01315 Mon Sep 17 00:00:00 2001 From: star-nox Date: Mon, 11 Sep 2023 15:19:06 -0500 Subject: [PATCH] removed jsonify(response) --- ai_ta_backend/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ai_ta_backend/main.py b/ai_ta_backend/main.py index 081d5e4c..41f9ce5a 100644 --- a/ai_ta_backend/main.py +++ b/ai_ta_backend/main.py @@ -427,9 +427,10 @@ def logToNomic(): # background execution of tasks!! response = executor.submit(log_convo_to_nomic, course_name, data) - response = jsonify(response) - response.headers.add('Access-Control-Allow-Origin', '*') - return response + #response = jsonify(response) + #response.headers.add('Access-Control-Allow-Origin', '*') + print(response) + return "response" if __name__ == '__main__':