JustHuggingFaces commited on
Commit
52f7c7e
·
verified ·
1 Parent(s): 1c48300

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -21,4 +21,8 @@ if st.button("Classify"):
21
  for result in results:
22
  if result['label'] == spam:
23
  #st.write("Text:", text)
24
- st.write("Label: Spam")
 
 
 
 
 
21
  for result in results:
22
  if result['label'] == spam:
23
  #st.write("Text:", text)
24
+ st.write("Spam!")
25
+ else:
26
+ st.write("Ham!")
27
+ speech = to_speech(text)
28
+ st.audio(speech)