Spaces:
Sleeping
Sleeping
Download models.py from Corin1998/IR_ESG_REPORTER2: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/Corin1998/IR_ESG_REPORTER2/resolve/main/models.py
- Command line
-
hf download hf://spaces/Corin1998/IR_ESG_REPORTER2/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Corin1998/IR_ESG_REPORTER2/resolve/main/models.py
637 Bytes
| from pydantic import BaseModel | |
| from typing import List, Optional, Dict, Any | |
| class CompanyMeta(BaseModel): | |
| company_name: str | |
| fiscal_year: int | |
| currency: str = "JPY" | |
| ticker: Optional[str] = None | |
| report_title: str = "Integrated Report" | |
| ceo_name: Optional[str] = None | |
| material_topics: List[str] = [] | |
| targets: Dict[str, Any] = {} | |
| class ReportSections(BaseModel): | |
| ceo_message: str = "" | |
| risk_opportunity: str = "" | |
| class RenderPayload(BaseModel): | |
| meta: CompanyMeta | |
| esg_table: List[Dict[str, Any]] | |
| kpi: Dict[str, float] | |
| sections: ReportSections | |
| generated_at: str | |
| lang: str = "ja" | |