Spaces:
Runtime error
Runtime error
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("Send email for {file_name}") | |
if send_button: | |
email_summary(file_name) | |
st.success("Sent email for {file_name}") | |
if __name__ == '__main__': | |
main() | |