updated model call
This commit is contained in:
parent
c156898316
commit
b4ef1ad8a2
@ -25,7 +25,7 @@ class ArticleClassification(BaseModel):
|
||||
|
||||
class ArticleAnalyzer:
|
||||
def __init__(self):
|
||||
self.model = AutoModelForSequenceClassification.from_pretrained('args.model_path', num_labels=3, cache_dir=None)
|
||||
self.model = AutoModelForSequenceClassification.from_pretrained("ProsusAI/finbert", num_labels=3, cache_dir=None)
|
||||
self.base_prompt = """
|
||||
Classify the following article into one of these categories:
|
||||
- Regulatory News
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user