File size: 822 Bytes
0ad8e38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5b0a74a
0ad8e38
 
 
5b0a74a
0ad8e38
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import streamlit as st
from utils import *

def main():
    st.title("Customer Care Call Summarization")

    uploaded_files = st.file_uploader("upload recorded .mp3 files", type=["mp3"], accept_multiple_files=True)

    if uploaded_files:
        st.write("Uploaded Files:")
        for uploaded_file in uploaded_files:
            file_name = uploaded_file.name

            col1,col2,col3 = st.columns([0.1,1,2])
            with col1:
                st.write("-")
            with col2:
                st.write(file_name)
            with col3:
                send_button = st.button(f"Send email for {file_name}")

                if send_button:
                    email_summary(file_name)
                    st.success(f"Sent email for {file_name}")

if __name__ == '__main__':
    main()