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