config.py 280 B

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