Spaces:
Runtime error
Runtime error
File size: 432 Bytes
bc0521a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import uvicorn
from .app import app as api_app
import logging
async def server():
"""Main application entry point."""
try:
print("Start api...")
config = uvicorn.Config(api_app, host="0.0.0.0", port=8080, log_level="info")
server = uvicorn.Server(config)
await server.serve()
except Exception as e:
logging.error(f"Application failed to start: {e}", exc_info=True)
raise
|