ikoghoemmanuell commited on
Commit
03ab018
·
1 Parent(s): bfd452f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -14
app.py CHANGED
@@ -4,7 +4,6 @@ import torch
4
  import requests
5
  from PIL import Image
6
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
7
- from predict_function import detect_fake_news
8
 
9
  # Load the model and tokenizer
10
  model_name = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
@@ -101,16 +100,16 @@ elif choice == 'About':
101
  banner_image_url = "https://raw.githubusercontent.com/Gilbert-B/Forecasting-Sales/0d7b869515bniVmJZZxhyQ8Fee6m6SCLi64M8Ba72c/app/seer.png"
102
  banner_image = Image.open(requests.get(banner_image_url, stream=True).raw)
103
 
104
- # Display the banner image
105
- st.image(banner_image, use_column_width=True)
106
- st.markdown('''
107
- <p style='font-size: 20px; font-style: italic;font-style: bold;'>
108
- TRUTH is a cutting-edge application specifically designed to combat the spread of fake news.
109
- Using state-of-the-art algorithms and advanced deep learning techniques,
110
- our app empowers users to detect and verify the authenticity of news articles.
111
- TRUTH provides accurate assessments of the reliability of news content.
112
- With its user-friendly interface and intuitive design,
113
- the app enables users to easily navigate and obtain trustworthy information in real-time.
114
- With TRUTH, you can take control of the news you consume and make informed decisions based on verified facts.
115
- </p>
116
- ''', unsafe_allow_html=True)
 
4
  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")
 
100
  banner_image_url = "https://raw.githubusercontent.com/Gilbert-B/Forecasting-Sales/0d7b869515bniVmJZZxhyQ8Fee6m6SCLi64M8Ba72c/app/seer.png"
101
  banner_image = Image.open(requests.get(banner_image_url, stream=True).raw)
102
 
103
+ # Display the banner image
104
+ st.image(banner_image, use_column_width=True)
105
+ st.markdown('''
106
+ <p style='font-size: 20px; font-style: italic;font-style: bold;'>
107
+ TRUTH is a cutting-edge application specifically designed to combat the spread of fake news.
108
+ Using state-of-the-art algorithms and advanced deep learning techniques,
109
+ our app empowers users to detect and verify the authenticity of news articles.
110
+ TRUTH provides accurate assessments of the reliability of news content.
111
+ With its user-friendly interface and intuitive design,
112
+ the app enables users to easily navigate and obtain trustworthy information in real-time.
113
+ With TRUTH, you can take control of the news you consume and make informed decisions based on verified facts.
114
+ </p>
115
+ ''', unsafe_allow_html=True)