JustHuggingFaces commited on
Commit
34dda3a
1 Parent(s): c00d4c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ if st.button("Classify"):
28
  #st.write("Label: ", result['label'])
29
  #st.image(spam_pic, caption="It's a spam!")
30
  else:
31
- st.write("Ham!")
32
  #st.write("Label: ", result['label'])
33
  speech = to_speech(text)
34
  st.audio(speech, sample_rate=16000, autoplay=True)
 
28
  #st.write("Label: ", result['label'])
29
  #st.image(spam_pic, caption="It's a spam!")
30
  else:
31
+ st.write("Ham! Generating speech...")
32
  #st.write("Label: ", result['label'])
33
  speech = to_speech(text)
34
  st.audio(speech, sample_rate=16000, autoplay=True)