Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
from textblob import TextBlob
|
4 |
from transformers import BertForSequenceClassification, AdamW, BertConfig
|
5 |
-
|
6 |
col1, col2= st.columns(2)
|
7 |
|
8 |
with col1:
|
@@ -10,7 +10,6 @@ with col1:
|
|
10 |
st.markdown("Message spam detection tool for Turkish language. Due the small size of the dataset, I decided to go with transformers technology Google BERT. Using the Turkish pre-trained model BERTurk, I imporved the accuracy of the tool by 18 percent compared to the previous model which used fastText.")
|
11 |
|
12 |
with col2:
|
13 |
-
st.set_page_config(layout='wide', initial_sidebar_state='expanded')
|
14 |
text = st.text_input("Enter the text you'd like to analyze for spam.")
|
15 |
|
16 |
|
|
|
2 |
from transformers import pipeline
|
3 |
from textblob import TextBlob
|
4 |
from transformers import BertForSequenceClassification, AdamW, BertConfig
|
5 |
+
st.set_page_config(layout='wide', initial_sidebar_state='expanded')
|
6 |
col1, col2= st.columns(2)
|
7 |
|
8 |
with col1:
|
|
|
10 |
st.markdown("Message spam detection tool for Turkish language. Due the small size of the dataset, I decided to go with transformers technology Google BERT. Using the Turkish pre-trained model BERTurk, I imporved the accuracy of the tool by 18 percent compared to the previous model which used fastText.")
|
11 |
|
12 |
with col2:
|
|
|
13 |
text = st.text_input("Enter the text you'd like to analyze for spam.")
|
14 |
|
15 |
|