jaisun2004 commited on
Commit
7c0f0ec
Β·
verified Β·
1 Parent(s): 178408b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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
- # 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 = []
 
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 = []