ikoghoemmanuell commited on
Commit
6c43c87
1 Parent(s): 8547ad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -17
app.py CHANGED
@@ -14,6 +14,24 @@ tokenizer_name = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_fake_n
14
  gif_url = "https://raw.githubusercontent.com/Gilbert-B/Forecasting-Sales/main/app/salesgif.gif"
15
  "https://docs.gato.txst.edu/78660/w/2000/a_1dzGZrL3bG/fake-fact.jpg"
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  # Set up sidebar
18
  st.sidebar.header('Navigation')
19
  menu = ['Home', 'About']
@@ -64,23 +82,6 @@ if choice == 'Home':
64
  with st.spinner('Checking if news is Fake...'):
65
  st.warning("Please enter some text to detect fake news.")
66
 
67
- # Setting the page configurations
68
- st.set_page_config(page_title="Fake News Detection App", page_icon="fas fa-exclamation-triangle", layout="wide", initial_sidebar_state="auto")
69
-
70
- # Define the CSS style for the app
71
- st.markdown(
72
- """
73
- <style>
74
- body {
75
- background-color: #f5f5f5;
76
- }
77
- h1 {
78
- color: #4e79a7;
79
- }
80
- </style>
81
- """,
82
- unsafe_allow_html=True
83
- )
84
 
85
  # About section
86
  if choice == 'About':
 
14
  gif_url = "https://raw.githubusercontent.com/Gilbert-B/Forecasting-Sales/main/app/salesgif.gif"
15
  "https://docs.gato.txst.edu/78660/w/2000/a_1dzGZrL3bG/fake-fact.jpg"
16
 
17
+ # Setting the page configurations
18
+ st.set_page_config(page_title="Fake News Detection App", page_icon="fas fa-exclamation-triangle", layout="wide", initial_sidebar_state="auto")
19
+
20
+ # Define the CSS style for the app
21
+ st.markdown(
22
+ """
23
+ <style>
24
+ body {
25
+ background-color: #f5f5f5;
26
+ }
27
+ h1 {
28
+ color: #4e79a7;
29
+ }
30
+ </style>
31
+ """,
32
+ unsafe_allow_html=True
33
+ )
34
+
35
  # Set up sidebar
36
  st.sidebar.header('Navigation')
37
  menu = ['Home', 'About']
 
82
  with st.spinner('Checking if news is Fake...'):
83
  st.warning("Please enter some text to detect fake news.")
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  # About section
87
  if choice == 'About':