to cuda
This commit is contained in:
parent
679f1bd941
commit
876f1f37a1
@ -26,6 +26,7 @@ class ArticleClassification(BaseModel):
|
||||
class ArticleAnalyzer:
|
||||
def __init__(self):
|
||||
self.model = AutoModelForSequenceClassification.from_pretrained("ProsusAI/finbert", num_labels=3, cache_dir=None)
|
||||
self.model.to("cuda")
|
||||
self.base_prompt = """
|
||||
Classify the following article into one of these categories:
|
||||
- Regulatory News
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user