mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 11:18:19 +08:00
11 lines
216 B
Python
11 lines
216 B
Python
from flask import Flask
|
|
|
|
|
|
def init_app(app: Flask):
|
|
if app.config.get('API_COMPRESSION_ENABLED', False):
|
|
from flask_compress import Compress
|
|
|
|
compress = Compress()
|
|
compress.init_app(app)
|
|
|