Commit
·
03ab018
1
Parent(s):
bfd452f
Update app.py
Browse files
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 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
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)
|