sharmavaruncs commited on
Commit
6b8ba3f
·
1 Parent(s): 8da8931

Increased font size for Spinner message

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -422,7 +422,7 @@ def process_file(ser_model,tokenizer,gpt_model,gpt_tokenizer):
422
 
423
  try:
424
  audio_array, sr = librosa.load(preprocessWavFile(temp_filename), sr=None)
425
- with st.spinner(st.markdown("<p style='font-size: 14px; font-weight: bold;'>Generating transcriptions in the side pane! Please wait...</p>", unsafe_allow_html=True)):
426
  transcription = speechtoText(temp_filename)
427
  emo = predict(audio_array,ser_model,2,tokenizer,transcription)
428
  # Display the transcription in a textbox
@@ -437,7 +437,7 @@ def process_file(ser_model,tokenizer,gpt_model,gpt_tokenizer):
437
  # Store the value of emo in the session state
438
  st.session_state.emo = emo
439
  if st.button(button_label):
440
- with st.spinner(st.markdown("<p style='font-size: 14px; font-weight: bold;'>Generating tips (it may take upto 3-4 mins depending upon network speed! Please wait...</p>", unsafe_allow_html=True)):
441
  # Retrieve prompt from the emotion
442
  emo = st.session_state.emo
443
  # Call the function for GENAI
 
422
 
423
  try:
424
  audio_array, sr = librosa.load(preprocessWavFile(temp_filename), sr=None)
425
+ 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)):
426
  transcription = speechtoText(temp_filename)
427
  emo = predict(audio_array,ser_model,2,tokenizer,transcription)
428
  # Display the transcription in a textbox
 
437
  # Store the value of emo in the session state
438
  st.session_state.emo = emo
439
  if st.button(button_label):
440
+ with st.spinner(st.markdown("<p style='font-size: 16px; font-weight: bold;'>Generating tips (it may take upto 3-4 mins depending upon network speed). Please wait...</p>", unsafe_allow_html=True)):
441
  # Retrieve prompt from the emotion
442
  emo = st.session_state.emo
443
  # Call the function for GENAI