Spaces:
Sleeping
Sleeping
File size: 232 Bytes
7964128 | 1 2 3 4 5 6 7 8 9 10 11 12 | import os
class Settings:
HOST = os.getenv("API_HOST", "localhost")
PORT = int(os.getenv("API_PORT", 8001))
@property
def BASE_URL(self):
return f"http://{self.HOST}:{self.PORT}"
settings = Settings()
|