mirror of https://github.com/vladmandic/automatic
parent
fe41d7da2a
commit
25e28050c3
|
|
@ -92,6 +92,7 @@
|
|||
- **nunchaku** update to `1.0.1` and enhance installer
|
||||
- **xyz-grid** add guidance section
|
||||
- **preview** implement configurable layers for WAN, Qwen, HV
|
||||
- update swagger `/docs` endpoint style
|
||||
- **Video**
|
||||
- use shared **T5** text encoder for video models when possible
|
||||
- use shared **LLama** text encoder for video models when possible
|
||||
|
|
|
|||
11351
html/swagger.css
11351
html/swagger.css
File diff suppressed because it is too large
Load Diff
|
|
@ -41,20 +41,18 @@ def get_swagger_ui_html(*,
|
|||
if oauth2_redirect_url:
|
||||
html += f"oauth2RedirectUrl: window.location.origin + '{oauth2_redirect_url}',"
|
||||
html += """
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIBundle.SwaggerUIStandalonePreset
|
||||
],
|
||||
})"""
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIBundle.SwaggerUIStandalonePreset
|
||||
],
|
||||
})"""
|
||||
if init_oauth:
|
||||
html += f"""
|
||||
ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))})
|
||||
"""
|
||||
html += f"ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))})"
|
||||
html += """
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
return HTMLResponse(html)
|
||||
|
||||
|
||||
|
|
@ -74,8 +72,9 @@ def create_docs(app: FastAPI):
|
|||
title=f'{app.title}: Swagger UI',
|
||||
openapi_url=app.openapi_url,
|
||||
swagger_favicon_url='/file=html/favicon.svg',
|
||||
swagger_css_url='/file=html/swagger.css',
|
||||
swagger_ui_parameters=swagger_ui_parameters,
|
||||
swagger_extra_css_url='file=html/swagger.css',
|
||||
# swagger_extra_css_url='file=html/swagger.css',
|
||||
)
|
||||
# res = inject_css(html.content, 'html/swagger.css')
|
||||
return res
|
||||
|
|
|
|||
Loading…
Reference in New Issue