samim2024's picture
Upload 3 files
fbba22c verified
raw
history blame contribute delete
964 Bytes
import streamlit as st
from utils import *
# Define the Streamlit app
def main():
st.title("Customer Care Call Summarization")
# Upload multiple files
uploaded_files = st.file_uploader("Upload recorded .mp3 files", type=["mp3"], accept_multiple_files=True)
if uploaded_files:
st.write("Uploaded Files:")
# Display uploaded files and buttons in a tabular form
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"Send email for: {file_name}")
# Run the Streamlit app
if __name__ == "__main__":
main()