Spaces:
Running
Running
JustHuggingFaces
commited on
Commit
•
d64d5d5
1
Parent(s):
ed8d79b
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ classifier = pipeline("text-classification", model='JustHuggingFaces/OptimalSpam
|
|
8 |
to_speech = TextToSpeech("NeuML/ljspeech-jets-onnx")
|
9 |
# Streamlit application title
|
10 |
st.title("Reading Ham")
|
11 |
-
st.write("Classification for Spam Email:
|
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
|
@@ -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,autoplay=True)
|
|
|
8 |
to_speech = TextToSpeech("NeuML/ljspeech-jets-onnx")
|
9 |
# Streamlit application title
|
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
|
|
|
26 |
st.write("Ham!")
|
27 |
#st.write("Label: ", result['label'])
|
28 |
speech = to_speech(text)
|
29 |
+
st.audio(speech, sample_rate=16000, autoplay=True)
|