Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
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)
|