ikoghoemmanuell commited on
Commit
f9609e4
·
1 Parent(s): 6c43c87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -5,6 +5,9 @@ import requests
5
  from PIL import Image
6
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
7
 
 
 
 
8
  # Load the model and tokenizer
9
  model_name = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
10
  tokenizer_name = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
@@ -12,10 +15,8 @@ tokenizer_name = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_fake_n
12
 
13
  # Loading GIF
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(
 
5
  from PIL import Image
6
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
7
 
8
+ # Setting the page configurations
9
+ st.set_page_config(page_title="Fake News Detection App", page_icon="fas fa-exclamation-triangle", layout="wide", initial_sidebar_state="auto")
10
+
11
  # Load the model and tokenizer
12
  model_name = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
13
  tokenizer_name = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
 
15
 
16
  # Loading GIF
17
  gif_url = "https://raw.githubusercontent.com/Gilbert-B/Forecasting-Sales/main/app/salesgif.gif"
18
+ # "https://docs.gato.txst.edu/78660/w/2000/a_1dzGZrL3bG/fake-fact.jpg"
19
 
 
 
20
 
21
  # Define the CSS style for the app
22
  st.markdown(