File size: 276 Bytes
20f348c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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 # type: ignore
compress = Compress()
compress.init_app(app)
|