import os UPLOAD_FOLDER = 'static/images' ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'bmp'} # ALIYUN_FUNCTION_URL = "https://imagefeature-hauveswkcf.cn-hangzhou.fcapp.run" ALIYUN_FUNCTION_URL = os.getenv("ALIYUN_FUNCTION_URL") TOP_K = 5 MIN_SCORE = 0.0 MAX_SCORE = 1.0