Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|