Update funcs.py
Browse files
funcs.py
CHANGED
|
@@ -123,8 +123,10 @@ def generate_falcon_response(prompt, max_new_tokens=300):
|
|
| 123 |
def summarize_and_recommend(therapy_session_conversation):
|
| 124 |
|
| 125 |
session_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
| 126 |
-
session_conversation = [item[0] for item in therapy_session_conversation]
|
| 127 |
-
session_conversation = [x for x in session_conversation if x is not None]
|
|
|
|
|
|
|
| 128 |
session_conversation.insert(0, "Session_time: " + session_time)
|
| 129 |
|
| 130 |
session_conversation_processed = '\n'.join(session_conversation)
|
|
|
|
| 123 |
def summarize_and_recommend(therapy_session_conversation):
|
| 124 |
|
| 125 |
session_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
|
| 126 |
+
# session_conversation = [item[0] for item in therapy_session_conversation]
|
| 127 |
+
# session_conversation = [x for x in session_conversation if x is not None]
|
| 128 |
+
session_conversation = [x for x in item for item in therapy_session_conversation if x is not None]
|
| 129 |
+
|
| 130 |
session_conversation.insert(0, "Session_time: " + session_time)
|
| 131 |
|
| 132 |
session_conversation_processed = '\n'.join(session_conversation)
|