Spaces:
Sleeping
Sleeping
Commit
·
c20d690
1
Parent(s):
aa71046
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 |
-
|
425 |
transcription = speechtoText(temp_filename)
|
426 |
emo = predict(audio_array,ser_model,2,tokenizer,transcription)
|
427 |
# Display the transcription in a textbox
|
|
|
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
|