vsrinivas commited on
Commit
a77b984
1 Parent(s): a50deea

Update funcs.py

Browse files
Files changed (1) hide show
  1. funcs.py +0 -3
funcs.py CHANGED
@@ -74,8 +74,6 @@ def generate_triggers_img(items):
74
 
75
  # Generate therapist responses and patient triggers
76
  def get_doc_response_emotions(user_message, therapy_session_conversation):
77
- global session_conversation
78
-
79
  user_messages = []
80
  user_messages.append(user_message)
81
  emotion_set = detect_emotions(user_message)
@@ -105,7 +103,6 @@ def get_doc_response_emotions(user_message, therapy_session_conversation):
105
 
106
  # Generate summarization and recommendations for teh session
107
  def summarize_and_recommend():
108
- global session_conversation
109
  session_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
110
  session_conversation_processed = session_conversation.copy()
111
  session_conversation_processed.insert(0, "Session_time: "+session_time)
 
74
 
75
  # Generate therapist responses and patient triggers
76
  def get_doc_response_emotions(user_message, therapy_session_conversation):
 
 
77
  user_messages = []
78
  user_messages.append(user_message)
79
  emotion_set = detect_emotions(user_message)
 
103
 
104
  # Generate summarization and recommendations for teh session
105
  def summarize_and_recommend():
 
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)