Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,19 +60,19 @@ if uploaded_file:
|
|
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 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
|
68 |
-
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
|
74 |
-
|
75 |
-
|
76 |
|
77 |
# Insight Tracking based on previous sessions
|
78 |
insights = []
|
|
|
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...")
|
65 |
+
emotion_model = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
66 |
+
emotion_scores = emotion_model(raw_transcript)
|
67 |
|
68 |
+
# Layout with Tabs
|
69 |
|
70 |
+
with tab1:
|
71 |
+
st.subheader("π Speaker-Simulated Transcript")
|
72 |
+
st.markdown(diarized_transcript, unsafe_allow_html=True)
|
73 |
|
74 |
+
with tab2:
|
75 |
+
st.subheader("π Contextual Summary")
|
76 |
|
77 |
# Insight Tracking based on previous sessions
|
78 |
insights = []
|