Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """ | |
| Lily LLM API μλ² v2 - λͺ¨λνλ λ²μ | |
| """ | |
| import uvicorn | |
| import logging | |
| import warnings | |
| # π RoPE κ²½κ³ μ¨κΈ°κΈ° | |
| warnings.filterwarnings("ignore", message="The attention layers in this model are transitioning") | |
| warnings.filterwarnings("ignore", message="rotary_pos_emb will be removed") | |
| warnings.filterwarnings("ignore", message="position_embeddings will be mandatory") | |
| # logging μ€μ | |
| logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') | |
| logger = logging.getLogger(__name__) | |
| from .core.app_factory import create_app | |
| # FastAPI μ ν리μΌμ΄μ μμ± | |
| app = create_app() | |
| def run_server(): | |
| """μλ² μ€ν""" | |
| uvicorn.run( | |
| "app_v2_modular:app", | |
| host="0.0.0.0", | |
| port=8000, | |
| reload=False, | |
| workers=1 | |
| ) | |
| if __name__ == "__main__": | |
| run_server() | |