Update app.py
Browse files
app.py
CHANGED
@@ -55,10 +55,9 @@ if st.button('Load Model', disabled=False):
|
|
55 |
prediction = 'Spam' if np.argmax(output.logits.cpu().numpy()).flatten().item() == 1 else 'Normal'
|
56 |
return pred = 'Predicted Class: '+ prediction
|
57 |
with col2:
|
58 |
-
st.header(p)
|
59 |
text = st.text_input("Enter the text you'd like to analyze for spam.")
|
60 |
if text or st.button('Analyze'):
|
61 |
-
predict(text)
|
62 |
|
63 |
|
64 |
|
|
|
55 |
prediction = 'Spam' if np.argmax(output.logits.cpu().numpy()).flatten().item() == 1 else 'Normal'
|
56 |
return pred = 'Predicted Class: '+ prediction
|
57 |
with col2:
|
|
|
58 |
text = st.text_input("Enter the text you'd like to analyze for spam.")
|
59 |
if text or st.button('Analyze'):
|
60 |
+
st.header(predict(text))
|
61 |
|
62 |
|
63 |
|