Spaces:
Runtime error
Runtime error
Download app.py from vmalapaka/Customer_Care_Call_Summarization: direct link, hf CLI and curl.
- Browser
- Download file 822 Bytes
-
https://huggingface.co/spaces/vmalapaka/Customer_Care_Call_Summarization/resolve/main/app.py
- Command line
-
hf download hf://spaces/vmalapaka/Customer_Care_Call_Summarization/app.py
-
curl -L -o app.py https://huggingface.co/spaces/vmalapaka/Customer_Care_Call_Summarization/resolve/main/app.py
822 Bytes
| 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() | |