NimaKL commited on
Commit
63b1109
Β·
1 Parent(s): 4c11b8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,7 +4,9 @@ from textblob import TextBlob
4
 
5
  pipe = pipeline('summarization')
6
  st.title("Spamd: Turkish Spam Detector")
7
-
 
 
8
  # -*- coding: utf-8 -*-
9
  """Spamd_SpamDetector_Turkish_BERT_22.09.2022.ipynb
10
 
@@ -292,9 +294,7 @@ def predict(new_sentence):
292
  # Remove the namestr(new_sentence, globals()) in case of an error
293
  print('Predicted Class: ', prediction,'\n----------------------------------\n')
294
 
295
- #Textbox for text user is entering
296
- st.subheader("Enter the text you'd like to analyze for spam.")
297
- text = st.text_input('Enter text') #text is stored in this variable
298
 
299
  predict(text)
300
 
 
4
 
5
  pipe = pipeline('summarization')
6
  st.title("Spamd: Turkish Spam Detector")
7
+ #Textbox for text user is entering
8
+ st.subheader("Enter the text you'd like to analyze for spam.")
9
+ text = st.text_input('Enter text') #text is stored in this variable
10
  # -*- coding: utf-8 -*-
11
  """Spamd_SpamDetector_Turkish_BERT_22.09.2022.ipynb
12
 
 
294
  # Remove the namestr(new_sentence, globals()) in case of an error
295
  print('Predicted Class: ', prediction,'\n----------------------------------\n')
296
 
297
+
 
 
298
 
299
  predict(text)
300