Spaces:
Sleeping
Sleeping
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 | |
} | |