演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
260 B
Python
14 lines
260 B
Python
from configs import dify_config
|
|
from dify_app import DifyApp
|
|
|
|
|
|
def is_enabled() -> bool:
|
|
return dify_config.API_COMPRESSION_ENABLED
|
|
|
|
|
|
def init_app(app: DifyApp):
|
|
from flask_compress import Compress
|
|
|
|
compress = Compress()
|
|
compress.init_app(app)
|