Rifky commited on
Commit
f9a4350
·
1 Parent(s): aa0d138

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
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
- col1, col2, col3 = st.columns(3)
36
-
37
- with col1:
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)