Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ if uploaded_file:
|
|
58 |
]
|
59 |
rag_context = "\n".join([f"Session {i+1}: {s['coping']}, {s['emotion']}, {s['notes']}" for i, s in enumerate(past_sessions)])
|
60 |
prompt_input = f"""Previous session context:\n{rag_context}\n\nCurrent session:\n{raw_transcript}"""
|
61 |
-
|
62 |
|
63 |
# Emotion tagging
|
64 |
st.info("🎭 Extracting emotional tones...")
|
|
|
58 |
]
|
59 |
rag_context = "\n".join([f"Session {i+1}: {s['coping']}, {s['emotion']}, {s['notes']}" for i, s in enumerate(past_sessions)])
|
60 |
prompt_input = f"""Previous session context:\n{rag_context}\n\nCurrent session:\n{raw_transcript}"""
|
61 |
+
summary = summarizer(prompt_input, max_length=256, min_length=60, do_sample=False)
|
62 |
|
63 |
# Emotion tagging
|
64 |
st.info("🎭 Extracting emotional tones...")
|