mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
62a2f7a742
* add CI fix tool to app * perform ruff safe fix * wrap too long lines in prompts.py
23 lines
553 B
Python
23 lines
553 B
Python
from pathlib import Path
|
|
from typing import Dict
|
|
|
|
import yaml
|
|
from finco.utils import SingletonBaseClass
|
|
|
|
|
|
class FactorImplementationPrompts(Dict, SingletonBaseClass):
|
|
def __init__(self):
|
|
super().__init__()
|
|
prompt_yaml_path = Path(__file__).parent / "prompts.yaml"
|
|
|
|
prompt_yaml_dict = yaml.load(
|
|
open(
|
|
prompt_yaml_path,
|
|
encoding="utf8",
|
|
),
|
|
Loader=yaml.FullLoader,
|
|
)
|
|
|
|
for key, value in prompt_yaml_dict.items():
|
|
self[key] = value
|