NimaKL commited on
Commit
7912a62
Β·
1 Parent(s): 63b1109
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,13 +1,14 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
  from textblob import TextBlob
 
 
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
 
13
  Original file is located at
 
1
  import streamlit as st
2
  from transformers import pipeline
3
  from textblob import TextBlob
4
+ import spacy
5
+ from spacytextblob.spacytextblob import SpacyTextBlob
6
 
7
+ st.set_page_config(layout='wide', initial_sidebar_state='expanded')
8
  st.title("Spamd: Turkish Spam Detector")
9
+ st.markdown("Enter the text you'd like to analyze for spam.")
10
+ text = st.text_input("Enter the text you'd like to analyze for spam.")
11
+
 
12
  """Spamd_SpamDetector_Turkish_BERT_22.09.2022.ipynb
13
 
14
  Original file is located at