Update app.py
Browse files
app.py
CHANGED
@@ -32,23 +32,11 @@ def sigmoid(x):
|
|
32 |
with st.spinner("Loading Model..."):
|
33 |
model, base_model, tokenizer, data = load_model()
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
st.write(' ')
|
39 |
-
|
40 |
-
with col2:
|
41 |
-
placeholder = st.empty()
|
42 |
-
st.markdown("""<h2 style="text-align:center;">Fake News Detection AI</h2>""", unsafe_allow_html=True)
|
43 |
-
user_input = st.text_input("Article url")
|
44 |
-
submit = st.button("submit")
|
45 |
-
|
46 |
-
with col3:
|
47 |
-
st.write(' ')
|
48 |
-
|
49 |
|
50 |
if submit:
|
51 |
-
placeholder.empty()
|
52 |
last_time = time.time()
|
53 |
with st.spinner("Reading Article..."):
|
54 |
scrap = Scrap(user_input)
|
|
|
32 |
with st.spinner("Loading Model..."):
|
33 |
model, base_model, tokenizer, data = load_model()
|
34 |
|
35 |
+
st.markdown("""<h2 style="text-align:center;">Fake News Detection AI</h2>""", unsafe_allow_html=True)
|
36 |
+
user_input = st.text_input("Article url")
|
37 |
+
submit = st.button("submit")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
if submit:
|
|
|
40 |
last_time = time.time()
|
41 |
with st.spinner("Reading Article..."):
|
42 |
scrap = Scrap(user_input)
|