Update main.py
Browse files
main.py
CHANGED
@@ -14,7 +14,8 @@ import requests
|
|
14 |
app = FastAPI(title="CaslaQuartz Image Generation API")
|
15 |
|
16 |
# Đường dẫn lưu trữ ảnh
|
17 |
-
SAVE_DIR = "generated_images"
|
|
|
18 |
Path(SAVE_DIR).mkdir(exist_ok=True)
|
19 |
|
20 |
# Định nghĩa các model Pydantic
|
|
|
14 |
app = FastAPI(title="CaslaQuartz Image Generation API")
|
15 |
|
16 |
# Đường dẫn lưu trữ ảnh
|
17 |
+
SAVE_DIR = "/tmp/generated_images"
|
18 |
+
Path(SAVE_DIR).mkdir(exist_ok=True)
|
19 |
Path(SAVE_DIR).mkdir(exist_ok=True)
|
20 |
|
21 |
# Định nghĩa các model Pydantic
|