File size: 587 Bytes
24eb986
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from pydantic_settings import BaseSettings
from typing import List


class Settings(BaseSettings):
    task: str = 'text-classification'
    models: List[str] = [
        'ProsusAI/finbert',
        'tabularisai/multilingual-sentiment-analysis',
        'fhamborg/roberta-targeted-sentiment-classification-newsarticles'
    ]
    
    sample_text: str = 'The quality of exchanged money in cache defines random person as a self-personed financial mentor if he absolutely successed at being thoughtful during the process of calculating the bills'
    
    title: str = 'Sentiment analyzer'