File size: 848 Bytes
15253f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import streamlit as st
from meeting_notes import transcript_to_notes

st.title('Meeting Transcript to Notes Converter')

uploaded_file = st.file_uploader("Choose a file", type=["txt"])
if uploaded_file is not None:
    transcript = str(uploaded_file.read(), "utf-8")  # Read and decode file
    speakers_input = st.text_input("Enter the list of speakers, separated by commas (optional)")

    if st.button("Generate Notes"):
        speakers_list = [speaker.strip() for speaker in speakers_input.split(',')] if speakers_input else None
        notes = transcript_to_notes(transcript, speakers_list)
        
        st.success("Meeting notes generated successfully!")
        st.download_button(
            label="Download Meeting Notes",
            data=notes,
            file_name="meeting_notes.txt",
            mime="text/plain"
        )