barkha167 commited on
Commit
f9b7b40
1 Parent(s): d3b7fa6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -0
app.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from utils import *
3
+
4
+
5
+ # Define the Streamlit app
6
+ def main():
7
+ st.title("Customer Care Call Summarization")
8
+
9
+ # Upload multiple files
10
+ uploaded_files = st.file_uploader("Upload recorded .mp3 files", type=["mp3"], accept_multiple_files=True)
11
+
12
+ if uploaded_files:
13
+ st.write("Uploaded Files:")
14
+
15
+ # Display uploaded files and buttons in a tabular form
16
+ for uploaded_file in uploaded_files:
17
+ file_name = uploaded_file.name
18
+
19
+
20
+ col1, col2, col3 = st.columns([0.1, 1, 2])
21
+ with col1:
22
+ st.write("-")
23
+ with col2:
24
+ st.write(file_name)
25
+ with col3:
26
+ send_button = st.button(f"Send Email for {file_name}")
27
+
28
+ if send_button:
29
+ email_summary(file_name)
30
+ st.success(f"Send email for: {file_name}")
31
+
32
+
33
+ # Run the Streamlit app
34
+ if __name__ == "__main__":
35
+ main()