Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -32,12 +32,13 @@ if 'transcript' not in st.session_state:
|
|
32 |
if 'groq_client' not in st.session_state:
|
33 |
st.session_state.groq_client = None
|
34 |
|
35 |
-
if
|
|
|
36 |
st.session_state.transcription_error = None
|
37 |
|
38 |
# Set page configuration
|
39 |
st.set_page_config(
|
40 |
-
page_title="
|
41 |
page_icon="π§ββοΈ",
|
42 |
layout="wide",
|
43 |
initial_sidebar_state="expanded"
|
@@ -521,7 +522,7 @@ def main():
|
|
521 |
|
522 |
# Add a button to transcribe the recorded audio
|
523 |
if st.button("Transcribe Recording", key="transcribe_rec"):
|
524 |
-
with st.spinner("Transcribing audio
|
525 |
try:
|
526 |
transcript = transcribe_audio_with_groq(wav_audio_data)
|
527 |
if transcript:
|
@@ -573,7 +574,7 @@ def main():
|
|
573 |
# Reset any previous transcription errors
|
574 |
st.session_state.transcription_error = None
|
575 |
|
576 |
-
with st.spinner("Transcribing audio
|
577 |
try:
|
578 |
transcript = transcribe_audio_with_groq(audio_file_path)
|
579 |
if transcript:
|
@@ -628,7 +629,7 @@ def main():
|
|
628 |
st.success("Video downloaded successfully!")
|
629 |
st.audio(audio_path)
|
630 |
|
631 |
-
with st.spinner("Transcribing audio
|
632 |
try:
|
633 |
transcript = transcribe_audio_with_groq(audio_path)
|
634 |
if transcript:
|
|
|
32 |
if 'groq_client' not in st.session_state:
|
33 |
st.session_state.groq_client = None
|
34 |
|
35 |
+
if
|
36 |
+
'transcription_error' not in st.session_state:
|
37 |
st.session_state.transcription_error = None
|
38 |
|
39 |
# Set page configuration
|
40 |
st.set_page_config(
|
41 |
+
page_title="Meeting Notes",
|
42 |
page_icon="π§ββοΈ",
|
43 |
layout="wide",
|
44 |
initial_sidebar_state="expanded"
|
|
|
522 |
|
523 |
# Add a button to transcribe the recorded audio
|
524 |
if st.button("Transcribe Recording", key="transcribe_rec"):
|
525 |
+
with st.spinner("Transcribing audio ....."):
|
526 |
try:
|
527 |
transcript = transcribe_audio_with_groq(wav_audio_data)
|
528 |
if transcript:
|
|
|
574 |
# Reset any previous transcription errors
|
575 |
st.session_state.transcription_error = None
|
576 |
|
577 |
+
with st.spinner("Transcribing audio ....."):
|
578 |
try:
|
579 |
transcript = transcribe_audio_with_groq(audio_file_path)
|
580 |
if transcript:
|
|
|
629 |
st.success("Video downloaded successfully!")
|
630 |
st.audio(audio_path)
|
631 |
|
632 |
+
with st.spinner("Transcribing audio ....."):
|
633 |
try:
|
634 |
transcript = transcribe_audio_with_groq(audio_path)
|
635 |
if transcript:
|