Update main.py
Browse files
main.py
CHANGED
@@ -8,7 +8,6 @@ from generate_image import generate_image
|
|
8 |
from fastapi.staticfiles import StaticFiles
|
9 |
|
10 |
app = FastAPI()
|
11 |
-
os.mkdir("tmp")
|
12 |
# 挂载 tmp 文件夹下的静态文件
|
13 |
app.mount("/static", StaticFiles(directory="tmp"), name="static")
|
14 |
# 添加跨域支持
|
|
|
8 |
from fastapi.staticfiles import StaticFiles
|
9 |
|
10 |
app = FastAPI()
|
|
|
11 |
# 挂载 tmp 文件夹下的静态文件
|
12 |
app.mount("/static", StaticFiles(directory="tmp"), name="static")
|
13 |
# 添加跨域支持
|