mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2024-11-10 09:03:02 +08:00
12 lines
269 B
Python
12 lines
269 B
Python
import uvicorn
|
|
|
|
from api.core.app import app # noqa: F401
|
|
from api.core.config import settings
|
|
|
|
if __name__ == '__main__':
|
|
uvicorn.run(
|
|
'main:app',
|
|
host=settings.API_HOST,
|
|
port=settings.API_PORT,
|
|
workers=settings.API_WORKERS,
|
|
)
|