22A223R commited on
Commit
f9aeffe
·
verified ·
1 Parent(s): 686f88a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import DistilBertModel, DistilBertTokenizer, DistilBertForSequ
7
  # set_token("your_hugging_face_token_here")
8
 
9
  # Load your self-hosted model
10
- model_name = "22A223R/distilbert"
11
  tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
12
  model = DistilBertForSequenceClassification.from_pretrained(model_name,ignore_mismatched_sizes=True)
13
  #tokenizer = AutoTokenizer.from_pretrained('distilbert-base-uncased')
@@ -55,4 +55,4 @@ iface = gr.Interface(fn=classify_text,
55
  description="This model is a fine-tuned DistilBERT model for detecting fake news. It was trained on the SST-2 dataset. It distinguishes real news from the fiction. Below are some preloaded examples you can choose from or enter your own.",
56
  examples=examples)
57
 
58
- iface.launch()
 
7
  # set_token("your_hugging_face_token_here")
8
 
9
  # Load your self-hosted model
10
+ model_name = "22A223R/bert-ITI110"
11
  tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
12
  model = DistilBertForSequenceClassification.from_pretrained(model_name,ignore_mismatched_sizes=True)
13
  #tokenizer = AutoTokenizer.from_pretrained('distilbert-base-uncased')
 
55
  description="This model is a fine-tuned DistilBERT model for detecting fake news. It was trained on the SST-2 dataset. It distinguishes real news from the fiction. Below are some preloaded examples you can choose from or enter your own.",
56
  examples=examples)
57
 
58
+ iface.launch()