vsrinivas commited on
Commit
8e47518
1 Parent(s): f13eed9

Update funcs.py

Browse files
Files changed (1) hide show
  1. funcs.py +3 -2
funcs.py CHANGED
@@ -99,14 +99,15 @@ def get_doc_response_emotions(user_message, therapy_session_conversation):
99
 
100
  def summarize_and_recommend(therapy_session_conversation):
101
 
102
- session_conversation = therapy_session_conversation.value
103
  # session_conversation = [item[0] for item in session_conversation]
 
104
 
105
  session_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
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
- print("Session conversation:", session_conversation_processed)
110
 
111
  full_summary = ""
112
  for chunk in AI71(AI71_API_KEY).chat.completions.create(
 
99
 
100
  def summarize_and_recommend(therapy_session_conversation):
101
 
102
+ session_conversation = list(therapy_session_conversation.value)
103
  # session_conversation = [item[0] for item in session_conversation]
104
+ print("Session conversation:", session_conversation_processed)
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
  session_conversation_processed ='\n'.join(session_conversation_processed)
110
+ print("session_conversation_processed:", session_conversation_processed)
111
 
112
  full_summary = ""
113
  for chunk in AI71(AI71_API_KEY).chat.completions.create(