fix project_slug error.

replace ml_pipeline with project_name or module_name from config
This commit is contained in:
publicmatt
2024-04-06 15:48:29 -07:00
parent 727f16df57
commit 6eed08d1ba
43 changed files with 81 additions and 95 deletions

View File

@@ -0,0 +1,11 @@
from {{cookiecutter.module_name}} import config
from fastapi import FastAPI, Response
import logging
import uvicorn
app = FastAPI()
logger = logging.getLogger(__name__)
def run():
uvicorn.run("{{cookiecutter.module_name}}.app:app", host=config.app.host, port=config.app.port, proxy_headers=True)