Ron Au commited on
Commit
27660a3
1 Parent(s): 47ab990

docs(FastAPI): Remove docs endpoints

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from fastapi.responses import FileResponse
8
  from modules.details import rand_details
9
  from modules.inference import generate_image
10
 
11
- app = FastAPI()
12
 
13
  app.mount("/static", StaticFiles(directory="static"), name="static")
14
 
 
8
  from modules.details import rand_details
9
  from modules.inference import generate_image
10
 
11
+ app = FastAPI(docs_url=None, redoc_url=None)
12
 
13
  app.mount("/static", StaticFiles(directory="static"), name="static")
14