mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-22 13:49:45 +08:00

Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
14 lines
348 B
Python
14 lines
348 B
Python
from app_factory import create_app
|
|
from libs import threadings_utils, version_utils
|
|
|
|
# preparation before creating app
|
|
version_utils.check_supported_python_version()
|
|
threadings_utils.apply_gevent_threading_patch()
|
|
|
|
# create app
|
|
app = create_app()
|
|
celery = app.extensions["celery"]
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=5001)
|