Spaces:
Sleeping
Sleeping
Commit
·
aa71046
1
Parent(s):
42bb9c4
added buttons side by side
Browse files
app.py
CHANGED
@@ -421,7 +421,7 @@ def process_file(ser_model,tokenizer,gpt_model,gpt_tokenizer):
|
|
421 |
try:
|
422 |
audio_array, sr = librosa.load(preprocessWavFile(temp_filename), sr=None)
|
423 |
#with st.spinner(st.markdown("<p style='font-size: 16px; font-weight: bold;'>Generating transcriptions in the side pane! Please wait...</p>", unsafe_allow_html=True)):
|
424 |
-
with st.spinner("Generating transcriptions in the side pane
|
425 |
transcription = speechtoText(temp_filename)
|
426 |
emo = predict(audio_array,ser_model,2,tokenizer,transcription)
|
427 |
# Display the transcription in a textbox
|
@@ -440,7 +440,7 @@ def process_file(ser_model,tokenizer,gpt_model,gpt_tokenizer):
|
|
440 |
st.session_state.emo = emo
|
441 |
if col1.button(button_label1):
|
442 |
#with st.spinner(st.markdown("<p style='font-size: 16px; font-weight: bold;'>Generating tips (it may take upto 2-3 mins). Please wait...</p>", unsafe_allow_html=True)):
|
443 |
-
with st.spinner("Generating transcriptions in the side pane
|
444 |
# Retrieve prompt from the emotion
|
445 |
emo = st.session_state.emo
|
446 |
# Call the function for GENAI
|
|
|
421 |
try:
|
422 |
audio_array, sr = librosa.load(preprocessWavFile(temp_filename), sr=None)
|
423 |
#with st.spinner(st.markdown("<p style='font-size: 16px; font-weight: bold;'>Generating transcriptions in the side pane! Please wait...</p>", unsafe_allow_html=True)):
|
424 |
+
with st.spinner("Generating transcriptions in the side pane.Please wait..."):
|
425 |
transcription = speechtoText(temp_filename)
|
426 |
emo = predict(audio_array,ser_model,2,tokenizer,transcription)
|
427 |
# Display the transcription in a textbox
|
|
|
440 |
st.session_state.emo = emo
|
441 |
if col1.button(button_label1):
|
442 |
#with st.spinner(st.markdown("<p style='font-size: 16px; font-weight: bold;'>Generating tips (it may take upto 2-3 mins). Please wait...</p>", unsafe_allow_html=True)):
|
443 |
+
with st.spinner("Generating transcriptions in the side pane.Please wait..."):
|
444 |
# Retrieve prompt from the emotion
|
445 |
emo = st.session_state.emo
|
446 |
# Call the function for GENAI
|