JustHuggingFaces commited on
Commit
ed8d79b
·
verified ·
1 Parent(s): 2c7a90e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ to_speech = TextToSpeech("NeuML/ljspeech-jets-onnx")
10
  st.title("Reading Ham")
11
  st.write("Classification for Spam Email: spam or ham?")
12
  # Text input for user to enter the text to classify
13
- text = st.text_area("Paste the email to classify", "")
14
  # Perform text classification when the user clicks the "Classify" button
15
  if st.button("Classify"):
16
  # Perform text classification on the input text
@@ -26,4 +26,4 @@ if st.button("Classify"):
26
  st.write("Ham!")
27
  #st.write("Label: ", result['label'])
28
  speech = to_speech(text)
29
- st.audio(speech, sample_rate=16000)
 
10
  st.title("Reading Ham")
11
  st.write("Classification for Spam Email: spam or ham?")
12
  # Text input for user to enter the text to classify
13
+ text = st.text_area("Paste the email text to classify, if it's a ham, read out", "")
14
  # Perform text classification when the user clicks the "Classify" button
15
  if st.button("Classify"):
16
  # Perform text classification on the input text
 
26
  st.write("Ham!")
27
  #st.write("Label: ", result['label'])
28
  speech = to_speech(text)
29
+ st.audio(speech, sample_rate=16000,autoplay=True)