We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b29a99 + 34a412e commit d0e8946Copy full SHA for d0e8946
app/api/v1/endpoints/stocks/image_search.py
@@ -17,7 +17,7 @@
17
summary="이미지 기반 종목 검색",
18
description="""
19
업로드된 이미지로부터 브랜드를 인식하여 종목 정보를 반환합니다.
20
- 최대 5MB 파일만 업로드 가능합니다.
+ 최대 20MB 파일만 업로드 가능합니다.
21
""",
22
tags=["Stock"]
23
)
@@ -26,9 +26,9 @@ async def search_stock_by_image(
26
db: Session = Depends(get_db)
27
):
28
contents = await image.read()
29
- MAX_IMAGE_SIZE = 5 * 1024 * 1024 # 5MB
+ MAX_IMAGE_SIZE = 20 * 1024 * 1024 # 20MB
30
31
- # 파일 크기 제한(5MB)
+ # 파일 크기 제한
32
if len(contents) > MAX_IMAGE_SIZE:
33
raise APIException(ErrorStatus.FILE_TOO_LARGE)
34
0 commit comments