edit : 상수값 수정
This commit is contained in:
@@ -216,7 +216,7 @@ class ImageGenAsync:
|
|||||||
jpeg_index += 1
|
jpeg_index += 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
_path = os.path.join(output_dir, f"{model}_{parsing_file_name}_{jpeg_index}_{D.date_file_name()}.png")
|
_path = os.path.join(output_dir, f"{model}_{parsing_file_name}_{jpeg_index}_{D.date_file_name()}.jpg")
|
||||||
if os.path.exists(_path):
|
if os.path.exists(_path):
|
||||||
raise Exception("파일 이미 존재함")
|
raise Exception("파일 이미 존재함")
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ def create_app():
|
|||||||
# fast_api_app.include_router(dev.router, tags=['Developments'], prefix='/api', dependencies=[Depends(API_KEY_HEADER)])
|
# fast_api_app.include_router(dev.router, tags=['Developments'], prefix='/api', dependencies=[Depends(API_KEY_HEADER)])
|
||||||
|
|
||||||
import os
|
import os
|
||||||
fast_api_app.mount('/static', StaticFiles(directory=os.path.abspath('./rest/app/static')), name="static")
|
# fast_api_app.mount('/static', StaticFiles(directory=os.path.abspath('./rest/app/static')), name="static")
|
||||||
|
|
||||||
return fast_api_app
|
return fast_api_app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user