Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|