HIM-self / config /environment_config.py
TeleologyHI
upd
2e4c7ad
raw
history blame contribute delete
428 Bytes
class EnvironmentConfig:
def __init__(self):
self.device = "cuda" # ou "cpu"
self.log_level = "INFO"
self.api_port = 8000
self.threads = 4
def to_dict(self):
"""Convert config to dictionary format"""
return {
"device": self.device,
"log_level": self.log_level,
"api_port": self.api_port,
"threads": self.threads
}