TAgroup5 commited on
Commit
3ee91ef
·
verified ·
1 Parent(s): 7fe36ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ stop_words = set(stopwords.words('english'))
21
 
22
  # Load fine-tuned model and tokenizer
23
  model_name = "TAgroup5/news-classification-model"
24
- model = AutoModelForSequenceClassification.from_pretrained(news-classification-model)
25
- tokenizer = AutoTokenizer.from_pretrained(news-classification-model)
26
 
27
  # Initialize pipelines
28
  text_classification_pipeline = pipeline("text-classification", model=model, tokenizer=tokenizer)
 
21
 
22
  # Load fine-tuned model and tokenizer
23
  model_name = "TAgroup5/news-classification-model"
24
+ model = AutoModelForSequenceClassification.from_pretrained("TAgroup5/news-classification-model")
25
+ tokenizer = AutoTokenizer.from_pretrained("TAgroup5/news-classification-model")
26
 
27
  # Initialize pipelines
28
  text_classification_pipeline = pipeline("text-classification", model=model, tokenizer=tokenizer)