|
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', |
|
'bardsai/finance-sentiment-zh-base' |
|
] |
|
|
|
sample_text: str = 'Reliance Risk Management Framework provides a consistent, clear and robust framework for managing risks across the group and thus is fundamental to our performance and progress. The integrated risk framework helps the Group to ensure that activities to manage risk are designed, implemented and operating effectively' |
|
|
|
title: str = 'Sentiment analyzer' |