99i commited on
Commit
72bf07b
·
verified ·
1 Parent(s): b03ea16

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -1
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
  # 添加跨域支持