Update funcs.py
Browse files
funcs.py
CHANGED
@@ -99,16 +99,15 @@ def get_doc_response_emotions(user_message, therapy_session_conversation):
|
|
99 |
|
100 |
def summarize_and_recommend(therapy_session_conversation):
|
101 |
print("tcs:", therapy_session_conversation, type(therapy_session_conversation))
|
102 |
-
session_conversation = list(therapy_session_conversation.value)
|
103 |
-
# session_conversation = [item[0] for item in session_conversation]
|
104 |
-
print("Session conversation:", session_conversation)
|
105 |
|
106 |
session_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
|
|
|
|
107 |
# session_conversation_processed = session_conversation.copy()
|
108 |
# session_conversation_processed.insert(0, "Session_time: "+session_time)
|
109 |
-
|
110 |
-
therapy_session_conversation.insert(0, "Session_time: "+session_time)
|
111 |
-
session_conversation_processed ='\n'.join(therapy_session_conversation)
|
112 |
print("session_conversation_processed:", session_conversation_processed)
|
113 |
|
114 |
full_summary = ""
|
|
|
99 |
|
100 |
def summarize_and_recommend(therapy_session_conversation):
|
101 |
print("tcs:", therapy_session_conversation, type(therapy_session_conversation))
|
|
|
|
|
|
|
102 |
|
103 |
session_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
104 |
+
session_conversation_processed = [session_time] + therapy_session_conversation
|
105 |
+
|
106 |
# session_conversation_processed = session_conversation.copy()
|
107 |
# session_conversation_processed.insert(0, "Session_time: "+session_time)
|
108 |
+
session_conversation_processed ='\n'.join(session_conversation_processed)
|
109 |
+
# therapy_session_conversation.insert(0, "Session_time: "+session_time)
|
110 |
+
# session_conversation_processed ='\n'.join(therapy_session_conversation)
|
111 |
print("session_conversation_processed:", session_conversation_processed)
|
112 |
|
113 |
full_summary = ""
|