ikoghoemmanuell commited on
Commit
47a2e1b
·
1 Parent(s): 80989ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ import torch
4
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
 
6
  # Load the model and tokenizer
7
- model_name = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_fake_news_bert")
8
- tokenizer_name = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_fake_news_bert")
9
 
10
  # Define the function for detecting fake news
11
  @st.cache_resource
 
4
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
 
6
  # Load the model and tokenizer
7
+ model_name = AutoModelForSequenceClassification.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
8
+ tokenizer_name = AutoTokenizer.from_pretrained("ikoghoemmanuell/finetuned_fake_news_roberta")
9
 
10
  # Define the function for detecting fake news
11
  @st.cache_resource