TAgroup5 commited on
Commit
08c83be
·
verified ·
1 Parent(s): 66d1db7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipe
7
 
8
  # Load fine-tuned model and tokenizer (adjust the model name)
9
  model_name = "TAgroup5/news-classification-model" # Replace with the correct model name
10
- model = AutoModelForSequenceClassification.from_pretrained(news-classification-model)
11
- tokenizer = AutoTokenizer.from_pretrained(news-classification-model)
12
 
13
  # Initialize pipelines
14
  text_classification_pipeline = pipeline("text-classification", model=model, tokenizer=tokenizer)
 
7
 
8
  # Load fine-tuned model and tokenizer (adjust the model name)
9
  model_name = "TAgroup5/news-classification-model" # Replace with the correct model name
10
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
11
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
12
 
13
  # Initialize pipelines
14
  text_classification_pipeline = pipeline("text-classification", model=model, tokenizer=tokenizer)