NimaKL commited on
Commit
04f9d92
Β·
1 Parent(s): ad4c1ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -65,10 +65,10 @@ with col2:
65
 
66
  prediction = 'Spam' if np.argmax(output.logits.cpu().numpy()).flatten().item() == 1 else 'Normal'
67
  pred = 'Predicted Class: '+ prediction
68
- st.header(pred)
69
- text = st.text_input("Enter the text you'd like to analyze for spam.")
70
- if text or st.button('Analyze'):
71
- predict(text)
72
 
73
 
74
 
 
65
 
66
  prediction = 'Spam' if np.argmax(output.logits.cpu().numpy()).flatten().item() == 1 else 'Normal'
67
  pred = 'Predicted Class: '+ prediction
68
+ st.header(pred)
69
+ text = st.text_input("Enter the text you'd like to analyze for spam.")
70
+ if text or st.button('Analyze'):
71
+ predict(text)
72
 
73
 
74