网站服务器租用还是自买,一键开启网站,网站改版需求说明,八桂云网站建设根源就是js和ccs文件访问路由的问题#xff0c;首先你要有本地的文件#xff0c;详情看https://qq742971636.blog.csdn.net/article/details/134587010。
其次#xff0c;你需要这么写#xff1a;
/unicontorlblip就是我配置的mLB网关路由。
app FastAPI(titleoutpaint…根源就是js和ccs文件访问路由的问题首先你要有本地的文件详情看https://qq742971636.blog.csdn.net/article/details/134587010。
其次你需要这么写
/unicontorlblip就是我配置的mLB网关路由。
app FastAPI(titleoutpainting_captioning_upscaler,descriptionoutpainting images, captioning images,upscaler images,version1.0.0,docs_urlNone,redoc_urlNone, # 设置 ReDoc 文档的路径)
app.add_middleware(CORSMiddleware,allow_origins[*],allow_credentialsTrue,allow_methods[*],allow_headers[*],
)
app.mount(/static, StaticFiles(directorystatic), namestatic)app.get(/docs, include_in_schemaFalse)
async def custom_swagger_ui_html():return get_swagger_ui_html(openapi_url/unicontorlblip/openapi.json,titlexx,# oauth2_redirect_urlapp.swagger_ui_oauth2_redirect_url,swagger_js_url/unicontorlblip/static/swagger/swagger-ui-bundle.js,swagger_css_url/unicontorlblip/static/swagger/swagger-ui.css,swagger_favicon_url/unicontorlblip/static/swagger/img.png,)