Spaces:
Sleeping
Sleeping
File size: 408 Bytes
582714f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import uvicorn
from .app import app as api_app
import logging
def main():
"""Main application entry point."""
try:
print("Start api...")
uvicorn.run(
api_app,
host="0.0.0.0",
port=8080,
reload=False,
)
except Exception as e:
logging.error(f"Application failed to start: {e}", exc_info=True)
raise
main()
|