Flask, Asyncio, BS4, Requests-html ValueError: signal only works in main thread of the main interpreter

Solution
from asgiref.wsgi import WsgiToAsgi
from hypercorn.config import Config
from hypercorn.asyncio import serve
if __name__ == "__main__":
    asgi_app = WsgiToAsgi(app)
    asyncio.run(serve(asgi_app, Config()))