Spaces:
Build error
Build error
Update app.py
Browse files11 unmodified lines1213141516171823 unmodified lines42434445464748279 unmodified lines328329330331332333334335336337338339154 unmodified lines49449549649749849950050143 unmodified lines54554654754854955055144 unmodified lines59659759859960060160248 unmodified lines65165265365465565665732 unmodified lines69069169269369469569611 unmodified linesfrom datetime import datetimeimport requestsfrom requests.exceptions import RequestExceptionfrom typing import Optional, Dict, Anyfrom download import download_video_audio, delete_downloadfrom st_audiorec import st_audiorec # Import the audio recorder component23 unmodified lines# Set page configurationst.set_page_config(page_title="ScribeWizard π§ββοΈ",page_icon="π§ββοΈ",layout="wide",279 unmodified linesprompt = f"""You are an expert meeting notes organizer with exceptional skills in creating structured, clear, and comprehensive notes.Please analyze the following transcript and transform it into highly organized meeting notes:```{transcript}```Create a professional meeting notes document with the following specific sections:# Executive Summary154 unmodified lines)def main():st.title("π§ββοΈ ScribeWizard")st.markdown("Transform speech into highly structured notes with AI magic")# Initialize API key from environment (Hugging Face secrets)if st.session_state.api_key and not st.session_state.groq_client:43 unmodified linesst.markdown(transcript)if st.button("Generate Structured Notes", key="generate_live"):with st.spinner("Creating highly structured notes..."):notes = process_transcript(transcript)if notes:44 unmodified lineswith st.expander("View Transcript", expanded=True):st.markdown(transcript)with st.spinner("Creating highly structured notes..."):notes = process_transcript(transcript)if notes:48 unmodified lineswith st.expander("View Transcript", expanded=True):st.markdown(transcript)with st.spinner("Creating highly structured notes..."):notes = process_transcript(transcript)if notes:32 unmodified linesst.session_state.transcript = transcriptif st.button("Generate Structured Notes", key="process_text"):with st.spinner("Creating highly structured notes..."):notes = process_transcript(transcript)if notes:11 unmodified lines121314151617181923 unmodified lines43444546474849279 unmodified lines329330331332333334335336337338339340154 unmodified lines49549649749849950050150243 unmodified lines54654754854955055155244 unmodified lines59759859960060160260348 unmodified lines65265365465565665765832 unmodified lines69169269369469569669711 unmodified linesfrom datetime import datetimeimport requestsfrom requests.exceptions import RequestExceptionfromtyping import Optional, Dict, Anyfrom download import download_video_audio, delete_downloadfrom st_audiorec import st_audiorec # Import the audio recorder component23 unmodified lines# Set page configurationst.set_page_config(page_title="NoteME",page_icon="π§ββοΈ",layout="wide",279 unmodified linesprompt = f"""You are an expert meeting notes organizer with exceptional skills in creating structured, clear, and comprehensive notes.Please analyze the following transcript and transform it into organized meeting notes in the same language as the Transcript ensuring Clarity:```{transcript}```Create a professional meeting notes document with the following specific sections:# Executive Summary154 unmodified lines)def main():st.title("π§ββοΈ Note")st.markdown("Transform speech into structured notes")# Initialize API key from environment (Hugging Face secrets)if st.session_state.api_key and not st.session_state.groq_client:43 unmodified linesst.markdown(transcript)if st.button("Generate Structured Notes", key="generate_live"):with st.spinner("Creating structured notes..."):notes = process_transcript(transcript)if notes:44 unmodified lineswith st.expander("View Transcript", expanded=True):st.markdown(transcript)with st.spinner("Creating structured notes..."):notes = process_transcript(transcript)if notes:48 unmodified lineswith st.expander("View Transcript", expanded=True):st.markdown(transcript)with st.spinner("Creating structured notes..."):notes = process_transcript(transcript)if notes:32 unmodified linesst.session_state.transcript = transcriptif st.button("Generate Structured Notes", key="process_text"):with st.spinner("Creating structured notes..."):notes = process_transcript(transcript)if notes:
app.py+11-10