sharmavaruncs commited on
Commit
a11efd4
·
1 Parent(s): c92e7b3

setting unsafe false for spinner

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -421,7 +421,7 @@ def process_file(ser_model,tokenizer,gpt_model,gpt_tokenizer):
421
 
422
  try:
423
  audio_array, sr = librosa.load(preprocessWavFile(temp_filename), sr=None)
424
- 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)):
425
  transcription = speechtoText(temp_filename)
426
  emo = predict(audio_array,ser_model,2,tokenizer,transcription)
427
  # Display the transcription in a textbox
@@ -436,7 +436,7 @@ def process_file(ser_model,tokenizer,gpt_model,gpt_tokenizer):
436
  # Store the value of emo in the session state
437
  st.session_state.emo = emo
438
  if st.button(button_label):
439
- 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)):
440
  # Retrieve prompt from the emotion
441
  emo = st.session_state.emo
442
  # Call the function for GENAI
 
421
 
422
  try:
423
  audio_array, sr = librosa.load(preprocessWavFile(temp_filename), sr=None)
424
+ 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=False)):
425
  transcription = speechtoText(temp_filename)
426
  emo = predict(audio_array,ser_model,2,tokenizer,transcription)
427
  # Display the transcription in a textbox
 
436
  # Store the value of emo in the session state
437
  st.session_state.emo = emo
438
  if st.button(button_label):
439
+ 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=False)):
440
  # Retrieve prompt from the emotion
441
  emo = st.session_state.emo
442
  # Call the function for GENAI