fracapuano
fix: minor
b785401
raw
history blame contribute delete
No virus
848 Bytes
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"
)