Spaces:
Paused
Paused
File size: 348 Bytes
98713f8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from app.main import app, settings
if __name__ == "__main__":
import uvicorn
# Pass the object directly. This avoids importing the application module a second time.
uvicorn.run(
app,
host=settings.app_host,
port=settings.app_port,
log_level=settings.log_level.lower(),
access_log=False,
)
|