Update app.py
Browse files
app.py
CHANGED
@@ -29,20 +29,13 @@ def load_model():
|
|
29 |
def sigmoid(x):
|
30 |
return 1 / (1 + np.exp(-x))
|
31 |
|
|
|
|
|
32 |
with st.spinner("Loading Model..."):
|
33 |
model, base_model, tokenizer, data = load_model()
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
st.write(" ")
|
38 |
-
|
39 |
-
with c2:
|
40 |
-
st.markdown("""<h2 style="text-align:center;">Fake News Detection AI</h2>""", unsafe_allow_html=True)
|
41 |
-
user_input = st.text_input("Article url")
|
42 |
-
submit = st.button("submit")
|
43 |
-
|
44 |
-
with c3:
|
45 |
-
st.write(" ")
|
46 |
|
47 |
if submit:
|
48 |
last_time = time.time()
|
|
|
29 |
def sigmoid(x):
|
30 |
return 1 / (1 + np.exp(-x))
|
31 |
|
32 |
+
st.markdown("""<h2 style="text-align:center;">Fake News Detection AI</h2>""", unsafe_allow_html=True)
|
33 |
+
|
34 |
with st.spinner("Loading Model..."):
|
35 |
model, base_model, tokenizer, data = load_model()
|
36 |
|
37 |
+
user_input = st.text_input("Article url")
|
38 |
+
submit = st.button("submit")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
if submit:
|
41 |
last_time = time.time()
|