| import grpc.experimental.gevent | import grpc.experimental.gevent | ||||
| grpc.experimental.gevent.init_gevent() | grpc.experimental.gevent.init_gevent() | ||||
| import time | |||||
| import logging | import logging | ||||
| import json | import json | ||||
| import threading | import threading | ||||
| import warnings | import warnings | ||||
| warnings.simplefilter("ignore", ResourceWarning) | warnings.simplefilter("ignore", ResourceWarning) | ||||
| os.environ['TZ'] = 'UTC' | |||||
| time.tzset() | |||||
| class DifyApp(Flask): | class DifyApp(Flask): | ||||
| pass | pass |